diff options
author | Aleksei Borzenkov <snaury@ydb.tech> | 2024-01-26 18:03:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-26 18:03:28 +0300 |
commit | 9f3844c68cef0369e5b2daae02e19c21b23ee65e (patch) | |
tree | ee07d8e4adcfdd21611fe910a84cb040a2aa101f | |
parent | 169272ca676e67b63b1e66619093863e1e55e9db (diff) | |
download | ydb-9f3844c68cef0369e5b2daae02e19c21b23ee65e.tar.gz |
Fix consistency check complaining about borrowed tx status parts KIKIMR-20903 (#1349)
-rw-r--r-- | ydb/core/tablet_flat/flat_executor.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ydb/core/tablet_flat/flat_executor.cpp b/ydb/core/tablet_flat/flat_executor.cpp index 13cdb2d535..7e74e12d18 100644 --- a/ydb/core/tablet_flat/flat_executor.cpp +++ b/ydb/core/tablet_flat/flat_executor.cpp @@ -4224,6 +4224,10 @@ TString TExecutor::CheckBorrowConsistency() { [&](const TIntrusiveConstPtr<NTable::TColdPart>& part) { knownBundles.insert(part->Label); }); + Database->EnumerateTableTxStatusParts(tableId, + [&](const TIntrusiveConstPtr<NTable::TTxStatusPart>& part) { + knownBundles.insert(part->Label); + }); } return BorrowLogic->DebugCheckBorrowConsistency(knownBundles); } |