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

Method UpdateStats

src/leveldb/db/version_set.cc:403–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401}
402
403bool Version::UpdateStats(const GetStats& stats) {
404 FileMetaData* f = stats.seek_file;
405 if (f != nullptr) {
406 f->allowed_seeks--;
407 if (f->allowed_seeks <= 0 && file_to_compact_ == nullptr) {
408 file_to_compact_ = f;
409 file_to_compact_level_ = stats.seek_file_level;
410 return true;
411 }
412 }
413 return false;
414}
415
416bool Version::RecordReadSample(Slice internal_key) {
417 ParsedInternalKey ikey;

Callers 1

GetMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected