| 1472 | } |
| 1473 | |
| 1474 | Compaction::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 | |
| 1486 | Compaction::~Compaction() { |
| 1487 | if (input_version_ != nullptr) { |
nothing calls this directly
no test coverage detected