Hold db opened for compact/recompact switch couch_index_compactor should hold the underlying DB open during the switch from the compaction phase to the recompaction phase. Otherwise db could be LRU-closed while in bettwen the two. Which would cause the compaction job to fail possibly wasting hours of work.