Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed Nov 11, 2024
1 parent 9dc36ab commit 8d0ba74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions versiondb/tsrocksdb/iterator.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func newRocksDBIterator(source *grocksdb.Iterator, prefix, start, end []byte, is
skipVersionZero: skipVersionZero,
}

it.trySkipNonZeroVersion()
it.trySkipZeroVersion()
return it
}

Expand Down Expand Up @@ -123,7 +123,7 @@ func (itr rocksDBIterator) Next() {
itr.source.Next()
}

itr.trySkipNonZeroVersion()
itr.trySkipZeroVersion()
}

func (itr rocksDBIterator) timestamp() uint64 {
Expand All @@ -132,7 +132,7 @@ func (itr rocksDBIterator) timestamp() uint64 {
return binary.LittleEndian.Uint64(ts.Data())
}

func (itr rocksDBIterator) trySkipNonZeroVersion() {
func (itr rocksDBIterator) trySkipZeroVersion() {
if itr.skipVersionZero {
for itr.Valid() && itr.timestamp() == 0 {
itr.Next()
Expand Down

0 comments on commit 8d0ba74

Please sign in to comment.