Skip to content

Commit 0ee58bd

Browse files
authored
24-2: Fix memory leak in uncommitted writes (#8240)
1 parent f542580 commit 0ee58bd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ydb/core/tx/datashard/datashard_dep_tracker.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,10 @@ void TDependencyTracker::TMvccDependencyTrackingLogic::AddOperation(const TOpera
792792
if (snapshotRepeatable) {
793793
// Repeatable snapshot writes are uncommitted, not externally visible, and don't conflict with anything
794794
isGlobalWriter = false;
795-
haveWrites = false;
795+
if (haveWrites) {
796+
Parent.ClearTmpWrite();
797+
haveWrites = false;
798+
}
796799
}
797800

798801
auto onImmediateConflict = [&](TOperation& conflict) {

0 commit comments

Comments
 (0)