mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-22 01:17:24 +08:00
alter style
This commit is contained in:
@@ -181,10 +181,12 @@ func enumerate(iter *gorocksdb.Iterator, prefix, lastKey []byte, includeLastKey
|
|||||||
iter.Seek(prefix)
|
iter.Seek(prefix)
|
||||||
} else {
|
} else {
|
||||||
iter.Seek(lastKey)
|
iter.Seek(lastKey)
|
||||||
|
if !includeLastKey {
|
||||||
if iter.Valid() && !includeLastKey &&
|
if iter.Valid() {
|
||||||
bytes.Equal(iter.Key().Data(), lastKey) {
|
if bytes.Equal(iter.Key().Data(), lastKey) {
|
||||||
iter.Next()
|
iter.Next()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user