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

Function MaxBytesForLevel

src/leveldb/db/version_set.cc:42–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42static double MaxBytesForLevel(const Options* options, int level) {
43 // Note: the result for level zero is not really used since we set
44 // the level-0 compaction threshold based on number of files.
45
46 // Result for both level-0 and level-1
47 double result = 10. * 1048576.0;
48 while (level > 1) {
49 result *= 10;
50 level--;
51 }
52 return result;
53}
54
55static uint64_t MaxFileSizeForLevel(const Options* options, int level) {
56 // We could vary per level to reduce number of files?

Callers 1

FinalizeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected