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

Method DBImpl

src/leveldb/db/db_impl.cc:127–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127DBImpl::DBImpl(const Options& raw_options, const std::string& dbname)
128 : env_(raw_options.env),
129 internal_comparator_(raw_options.comparator),
130 internal_filter_policy_(raw_options.filter_policy),
131 options_(SanitizeOptions(dbname, &internal_comparator_,
132 &internal_filter_policy_, raw_options)),
133 owns_info_log_(options_.info_log != raw_options.info_log),
134 owns_cache_(options_.block_cache != raw_options.block_cache),
135 dbname_(dbname),
136 table_cache_(new TableCache(dbname_, options_, TableCacheSize(options_))),
137 db_lock_(nullptr),
138 shutting_down_(false),
139 background_work_finished_signal_(&mutex_),
140 mem_(nullptr),
141 imm_(nullptr),
142 has_imm_(false),
143 logfile_(nullptr),
144 logfile_number_(0),
145 log_(nullptr),
146 seed_(0),
147 tmp_batch_(new WriteBatch),
148 background_compaction_scheduled_(false),
149 manual_compaction_(nullptr),
150 versions_(new VersionSet(dbname_, &options_, table_cache_,
151 &internal_comparator_)) {}
152
153DBImpl::~DBImpl() {
154 // Wait for background work to finish.

Callers

nothing calls this directly

Calls 2

SanitizeOptionsFunction · 0.85
TableCacheSizeFunction · 0.85

Tested by

no test coverage detected