Skip to content

Commit

Permalink
see updated Record's vesion (epoch/tid) at upsert
Browse files Browse the repository at this point in the history
  • Loading branch information
ban-nobuhiro committed Nov 8, 2024
1 parent 1c1d259 commit 94a1c3a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/concurrency_control/interface/short_tx/termination.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,10 @@ Status write_lock(session* ti, tid_word& commit_tid) {
return Status::ERR_KVS;
}
}
// check Record version to update
if (!rec_ptr->get_tidw_ref().get_absent()) {
commit_tid = std::max(commit_tid, rec_ptr->get_tidw_ref());
}
return Status::OK;
}
if (rc == Status::ERR_CC) {
Expand Down

0 comments on commit 94a1c3a

Please sign in to comment.