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

Method AddInputDeletions

src/leveldb/db/version_set.cc:1502–1508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1500}
1501
1502void 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
1510bool Compaction::IsBaseLevelForKey(const Slice& user_key) {
1511 // Maybe use binary search to find right entry instead of linear search?

Callers 1

Calls 2

sizeMethod · 0.45
DeleteFileMethod · 0.45

Tested by

no test coverage detected