Skip to content

Commit afebf18

Browse files
xuweidong.forevererikgrinaker
authored andcommitted
MVCC: using first() to get the range start
1 parent 6fe19fc commit afebf18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/storage/mvcc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ impl<E: Engine> Transaction<E> {
537537
// the same invariant.
538538
let from = Key::Version(
539539
key.into(),
540-
self.state.active.iter().min().copied().unwrap_or(self.state.version + 1),
540+
self.state.active.first().copied().unwrap_or(self.state.version + 1),
541541
)
542542
.encode();
543543
let to = Key::Version(key.into(), u64::MAX).encode();

0 commit comments

Comments
 (0)