Changeset View
Changeset View
Standalone View
Standalone View
src/leveldb/db/version_set.h
Show First 20 Lines • Show All 360 Lines • ▼ Show 20 Lines | public: | ||||
// Release the input version for the compaction, once the compaction | // Release the input version for the compaction, once the compaction | ||||
// is successful. | // is successful. | ||||
void ReleaseInputs(); | void ReleaseInputs(); | ||||
private: | private: | ||||
friend class Version; | friend class Version; | ||||
friend class VersionSet; | friend class VersionSet; | ||||
explicit Compaction(int level); | Compaction(const Options* options, int level); | ||||
int level_; | int level_; | ||||
uint64_t max_output_file_size_; | uint64_t max_output_file_size_; | ||||
Version* input_version_; | Version* input_version_; | ||||
VersionEdit edit_; | VersionEdit edit_; | ||||
// Each compaction reads inputs from "level_" and "level_+1" | // Each compaction reads inputs from "level_" and "level_+1" | ||||
std::vector<FileMetaData*> inputs_[2]; // The two sets of inputs | std::vector<FileMetaData*> inputs_[2]; // The two sets of inputs | ||||
Show All 21 Lines |