mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
alter style
This commit is contained in:
parent
c7e7431fd3
commit
0f18592315
|
@ -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()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue