diff options
author | chertus <azuikov@ydb.tech> | 2023-02-21 20:02:02 +0300 |
---|---|---|
committer | chertus <azuikov@ydb.tech> | 2023-02-21 20:02:02 +0300 |
commit | b9c4293655400ae51f8bfb44a8aa7320ea916e32 (patch) | |
tree | 2162bdf4c53ae5b5a176a19b3061d13b45f90d8c | |
parent | 6e33b317bd70bd0662ae81effbec343f6d39af0c (diff) | |
download | ydb-b9c4293655400ae51f8bfb44a8aa7320ea916e32.tar.gz |
one more consistency check
-rw-r--r-- | ydb/core/tx/columnshard/columnshard__write_index.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/ydb/core/tx/columnshard/columnshard__write_index.cpp b/ydb/core/tx/columnshard/columnshard__write_index.cpp index 664a6d434e..a0afaf3c3c 100644 --- a/ydb/core/tx/columnshard/columnshard__write_index.cpp +++ b/ydb/core/tx/columnshard/columnshard__write_index.cpp @@ -133,13 +133,11 @@ bool TTxWriteIndex::Execute(TTransactionContext& txc, const TActorContext& ctx) Self->IncCounter(COUNTER_EVICTION_PORTIONS_WRITTEN, changes->PortionsToEvict.size()); for (auto& [portionInfo, evictionFeatures] : changes->PortionsToEvict) { - auto& tierName = portionInfo.TierName; - if (tierName.empty()) { - continue; - } - // Mark exported blobs if (evictionFeatures.NeedExport) { + auto& tierName = portionInfo.TierName; + Y_VERIFY(!tierName.empty()); + for (auto& rec : portionInfo.Records) { auto& blobId = rec.BlobRange.BlobId; if (!blobsToExport.count(blobId)) { |