storage: correct revision for range when deleteRange
to make it logically reasonable.release-2.2
parent
797a4796d9
commit
9175df7c71
|
@ -366,8 +366,7 @@ func (s *store) put(key, value []byte) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *store) deleteRange(key, end []byte) int64 {
|
func (s *store) deleteRange(key, end []byte) int64 {
|
||||||
rev := s.currentRev.main + 1
|
rrev := s.currentRev.main
|
||||||
rrev := rev
|
|
||||||
if s.currentRev.sub > 0 {
|
if s.currentRev.sub > 0 {
|
||||||
rrev += 1
|
rrev += 1
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue