Returns true iff some level needs a compaction.
| 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. |
no outgoing calls
no test coverage detected