aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Borzenkov <snaury@yandex-team.ru>2022-02-08 15:59:21 +0300
committerAlexey Borzenkov <snaury@yandex-team.ru>2022-02-08 15:59:21 +0300
commit8cfdfb008d75d16cd8091899a1549c028a123cdb (patch)
tree12274bc065557edb690c293eb769e84536b82f1e
parent1fafdf10d7f7a82fc6440f9358df4a144af23596 (diff)
downloadydb-8cfdfb008d75d16cd8091899a1549c028a123cdb.tar.gz
Set TxId not Step to the maximum value, KIKIMR-14259
ref:30b1ae0420b1e2dbce4ff87c00cd1343a9a91f3d
-rw-r--r--ydb/core/tx/datashard/datashard_snapshots.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ydb/core/tx/datashard/datashard_snapshots.cpp b/ydb/core/tx/datashard/datashard_snapshots.cpp
index 5852758322..3f98283509 100644
--- a/ydb/core/tx/datashard/datashard_snapshots.cpp
+++ b/ydb/core/tx/datashard/datashard_snapshots.cpp
@@ -284,7 +284,7 @@ bool TSnapshotManager::ChangeMvccState(ui64 step, ui64 txId, TTransactionContext
// mvcc writes before the switch, but they would have happened at the end
// of the step.
if (nextVersion) {
- nextVersion.Step = Max<ui64>();
+ nextVersion.TxId = Max<ui64>();
}
if (IsMvccEnabled()) {