MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / needs_compaction

Method needs_compaction

nodedb/src/storage/compaction.rs:74–76  ·  view source on GitHub ↗

Whether this segment needs compaction (high tombstone ratio).

(&self, threshold: f64)

Source from the content-addressed store, hash-verified

72
73 /// Whether this segment needs compaction (high tombstone ratio).
74 pub fn needs_compaction(&self, threshold: f64) -> bool {
75 self.tombstone_ratio() > threshold
76 }
77}
78
79/// Result of a compaction pass.

Callers 1

Calls 1

tombstone_ratioMethod · 0.45

Tested by

no test coverage detected