go语言tikv,key值匹配

key.PrefixNextKey 找到区间的结尾,然后构造一个 iter 去遍历一遍。

比如 channel_1 的 PrefixNextKey 就是 channel_2,构造出来的区间就是 [channel_1, channel_2)

1 个赞