-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow forced compaction generated by external script (blockstore-pcom…
…pact-tablets) to advance in presense of heavy tablet compaction (#2527) * let forced compaction to proceed in a presence of heavy tablet compaction * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update
- Loading branch information
Showing
19 changed files
with
460 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#include "compaction_options.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#pragma once | ||
|
||
#include <util/system/types.h> | ||
|
||
#include <bitset> | ||
|
||
namespace NCloud::NBlockStore::NStorage { | ||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
|
||
enum class ECompactionOption: size_t | ||
{ | ||
Full, // non-incremental compaction | ||
Forced, // compaction initiated externally | ||
MaxFieldNumber, | ||
}; | ||
|
||
constexpr size_t ToBit(ECompactionOption option) | ||
{ | ||
return static_cast<size_t>(option); | ||
} | ||
|
||
using TCompactionOptions = | ||
std::bitset<ToBit(ECompactionOption::MaxFieldNumber)>; | ||
|
||
} // namespace NCloud::NBlockStore::NStorage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#include "compaction_type.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#pragma once | ||
|
||
#include <util/system/types.h> | ||
|
||
namespace NCloud::NBlockStore::NStorage { | ||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
|
||
enum class ECompactionType: ui32 | ||
{ | ||
Forced, // compaction initiated externally | ||
Tablet, // compaction initiated by tablet | ||
}; | ||
|
||
} // namespace NCloud::NBlockStore::NStorage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.