Commit 32deda2c authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 59181256
......@@ -26,7 +26,7 @@ import (
)
const traceRangeSet = true
const debugRangeSet = true
const debugRangeSet = false
// Range represents [lo,hi) Key range.
type Range struct {
......@@ -267,6 +267,9 @@ func (A *RangeSet) DifferenceInplace(B *RangeSet) {
// XXX dumb
for _, r := range B.rangev {
if len(A.rangev) == 0 {
break
}
A.DelRange(r)
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment