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

Method NeedsCompaction

src/leveldb/db/version_set.h:252–255  ·  view source on GitHub ↗

Returns true iff some level needs a compaction.

Source from the content-addressed store, hash-verified

250
251 // Returns true iff some level needs a compaction.
252 bool NeedsCompaction() const {
253 Version* v = current_;
254 return (v->compaction_score_ >= 1) || (v->file_to_compact_ != nullptr);
255 }
256
257 // Add all files listed in any live version to *live.
258 // May also mutate some internal state.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected