Skip to content

Commit

Permalink
[fix][store] Fix TxnScan write_iter range end.
Browse files Browse the repository at this point in the history
Signed-off-by: Ketor <[email protected]>
  • Loading branch information
ketor committed Mar 19, 2024
1 parent 50b2d40 commit 9e661c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/txn_engine_helper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ butil::Status TxnIterator::Init() {
// construct write iter
IteratorOptions write_iter_options;
write_iter_options.lower_bound = Helper::EncodeTxnKey(range_.start_key(), Constant::kMaxVer);
write_iter_options.upper_bound = Helper::EncodeTxnKey(range_.end_key(), 0);
write_iter_options.upper_bound = Helper::EncodeTxnKey(range_.end_key(), Constant::kMaxVer);

write_iter_ = reader_->NewIterator(Constant::kTxnWriteCF, snapshot_, write_iter_options);
if (write_iter_ == nullptr) {
Expand Down

0 comments on commit 9e661c2

Please sign in to comment.