Skip to content

Commit

Permalink
fix tierings db usage (#1691)
Browse files Browse the repository at this point in the history
* fix tierings db usage

* fix
  • Loading branch information
ivanmorozov333 authored Feb 8, 2024
1 parent 8cf960f commit 6976a71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ydb/core/tx/columnshard/blobs_action/tier/gc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ void TGCTask::DoOnExecuteTxAfterCleaning(NColumnShard::TColumnShard& /*self*/, N
size_t numBlobs = 0;

for (; DraftBlobIds.size() && numBlobs < NColumnShard::TLimits::MAX_BLOBS_TO_DELETE; ++numBlobs) {
dbBlobs.EraseBlobToKeep(DraftBlobIds.front());
dbBlobs.RemoveTierDraftBlobId(GetStorageId(), DraftBlobIds.front());
DraftBlobIds.pop_front();
}

for (; DeleteBlobIds.size() && numBlobs < NColumnShard::TLimits::MAX_BLOBS_TO_DELETE; ++numBlobs) {
dbBlobs.EraseBlobToDelete(DeleteBlobIds.front());
dbBlobs.RemoveTierBlobToDelete(GetStorageId(), DeleteBlobIds.front());
DeleteBlobIds.pop_front();
}
}
Expand Down

0 comments on commit 6976a71

Please sign in to comment.