Returns true if level zero may be compacted, without accounting for compactions that already might be happening.
()
| 410 | // Returns true if level zero may be compacted, without accounting for compactions that already |
| 411 | // might be happening. |
| 412 | func (s *levelsController) isLevel0Compactable() bool { |
| 413 | return s.levels[0].numTables() >= s.kv.opt.NumLevelZeroTables |
| 414 | } |
| 415 | |
| 416 | // Returns true if the non-zero level may be compacted. delSize provides the size of the tables |
| 417 | // which are currently being compacted so that we treat them as already having started being |
no test coverage detected