MCPcopy Create free account
hub / github.com/ElementsProject/elements / Compaction

Method Compaction

src/leveldb/db/version_set.cc:1474–1484  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1472}
1473
1474Compaction::Compaction(const Options* options, int level)
1475 : level_(level),
1476 max_output_file_size_(MaxFileSizeForLevel(options, level)),
1477 input_version_(nullptr),
1478 grandparent_index_(0),
1479 seen_key_(false),
1480 overlapped_bytes_(0) {
1481 for (int i = 0; i < config::kNumLevels; i++) {
1482 level_ptrs_[i] = 0;
1483 }
1484}
1485
1486Compaction::~Compaction() {
1487 if (input_version_ != nullptr) {

Callers

nothing calls this directly

Calls 1

MaxFileSizeForLevelFunction · 0.85

Tested by

no test coverage detected