| 1500 | } |
| 1501 | |
| 1502 | void Compaction::AddInputDeletions(VersionEdit* edit) { |
| 1503 | for (int which = 0; which < 2; which++) { |
| 1504 | for (size_t i = 0; i < inputs_[which].size(); i++) { |
| 1505 | edit->DeleteFile(level_ + which, inputs_[which][i]->number); |
| 1506 | } |
| 1507 | } |
| 1508 | } |
| 1509 | |
| 1510 | bool Compaction::IsBaseLevelForKey(const Slice& user_key) { |
| 1511 | // Maybe use binary search to find right entry instead of linear search? |
no test coverage detected