1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-07-06 00:57:10 +02:00

alter style

This commit is contained in:
qieqieplus 2021-01-07 18:21:48 +08:00
parent c7e7431fd3
commit 0f18592315

View file

@ -181,10 +181,12 @@ func enumerate(iter *gorocksdb.Iterator, prefix, lastKey []byte, includeLastKey
iter.Seek(prefix)
} else {
iter.Seek(lastKey)
if iter.Valid() && !includeLastKey &&
bytes.Equal(iter.Key().Data(), lastKey) {
iter.Next()
if !includeLastKey {
if iter.Valid() {
if bytes.Equal(iter.Key().Data(), lastKey) {
iter.Next()
}
}
}
}