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

Function ExpandedCompactionByteSizeLimit

src/leveldb/db/version_set.cc:38–40  ·  view source on GitHub ↗

Maximum number of bytes in all compacted files. We avoid expanding the lower level file set of a compaction if it would make the total compaction cover more than this many bytes.

Source from the content-addressed store, hash-verified

36// the lower level file set of a compaction if it would make the
37// total compaction cover more than this many bytes.
38static int64_t ExpandedCompactionByteSizeLimit(const Options* options) {
39 return 25 * TargetFileSize(options);
40}
41
42static double MaxBytesForLevel(const Options* options, int level) {
43 // Note: the result for level zero is not really used since we set

Callers 1

SetupOtherInputsMethod · 0.85

Calls 1

TargetFileSizeFunction · 0.85

Tested by

no test coverage detected