Skip to content

Commit

Permalink
Disable level triggered compaction in donor VDisks (ydb-platform#8376)
Browse files Browse the repository at this point in the history
Co-authored-by: Vlad Kuznecov <[email protected]>
  • Loading branch information
va-kuznecov and Vlad Kuznecov authored Aug 28, 2024
1 parent 7a742cd commit 9e4a92a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ydb/core/blobstorage/vdisk/hullop/blobstorage_hullactor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,10 @@ namespace NKikimr {
// returns true, if selector has been started, false otherwise
bool RunLevelCompactionSelector(const TActorContext &ctx) {
// if compaction is in progress, return
if (RTCtx->LevelIndex->GetCompState() != TLevelIndexBase::StateNoComp || !Config->LevelCompaction) {
if (RTCtx->LevelIndex->GetCompState() != TLevelIndexBase::StateNoComp
|| !Config->LevelCompaction
|| Config->BaseInfo.DonorMode) {

return false;
}

Expand Down

0 comments on commit 9e4a92a

Please sign in to comment.