aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.com>2023-03-03 14:50:43 +0300
committerthegeorg <thegeorg@yandex-team.com>2023-03-03 14:50:43 +0300
commitb53e1ad22f86b89727d455711c68036a4496d06d (patch)
tree3fd91e289f96f5b9fd311a64a987d9b218e90243
parentafdafb4f7cc6e453cae5bd8ef900c59eff001f40 (diff)
downloadydb-b53e1ad22f86b89727d455711c68036a4496d06d.tar.gz
Fix compatibility with new abseil-cpp
-rw-r--r--ydb/core/tablet_flat/flat_mem_warm.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/ydb/core/tablet_flat/flat_mem_warm.h b/ydb/core/tablet_flat/flat_mem_warm.h
index 065bf48631..10ceb217d7 100644
--- a/ydb/core/tablet_flat/flat_mem_warm.h
+++ b/ydb/core/tablet_flat/flat_mem_warm.h
@@ -462,7 +462,9 @@ namespace NMem {
void CommitTx(ui64 txId, TRowVersion rowVersion) {
auto it = Committed.find(txId);
- if (it == Committed.end() || it->second > rowVersion) {
+ bool toInsert = (it == Committed.end());
+
+ if (toInsert || it->second > rowVersion) {
if (RollbackState) {
if (it != Committed.end()) {
UndoBuffer.push_back(TUndoOpUpdateCommitted{ txId, it->second });
@@ -471,7 +473,7 @@ namespace NMem {
}
}
Committed[txId] = rowVersion;
- if (it == Committed.end()) {
+ if (toInsert) {
auto itRemoved = Removed.find(txId);
if (itRemoved != Removed.end()) {
if (RollbackState) {