MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / AddFile

Method AddFile

src/leveldb/db/version_edit.h:62–72  ·  view source on GitHub ↗

Add the specified file at the specified number. REQUIRES: This version has not been saved (see VersionSet::SaveTo) REQUIRES: "smallest" and "largest" are smallest and largest keys in file

Source from the content-addressed store, hash-verified

60 // REQUIRES: This version has not been saved (see VersionSet::SaveTo)
61 // REQUIRES: "smallest" and "largest" are smallest and largest keys in file
62 void AddFile(int level, uint64_t file,
63 uint64_t file_size,
64 const InternalKey& smallest,
65 const InternalKey& largest) {
66 FileMetaData f;
67 f.number = file;
68 f.file_size = file_size;
69 f.smallest = smallest;
70 f.largest = largest;
71 new_files_.push_back(std::make_pair(level, f));
72 }
73
74 // Delete the specified "file" from the specified "level".
75 void DeleteFile(int level, uint64_t file) {

Callers 7

BM_LogAndApplyFunction · 0.80
WriteLevel0TableMethod · 0.80
BackgroundCompactionMethod · 0.80
WriteDescriptorMethod · 0.80
TESTFunction · 0.80
WriteSnapshotMethod · 0.80

Calls 1

push_backMethod · 0.45

Tested by 2

BM_LogAndApplyFunction · 0.64
TESTFunction · 0.64