conf item to toggle periodic cleanup for rocksdb

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk authored and June committed 2024-04-09 15:26:45 -04:00
1 parent 865b5d7241
commit bade4ed17f
3 files changed
+12

No files matched your search

+4
View File
@@ -545,6 +545,10 @@ async fn start_cleanup_task() {
}
fn perform_cleanup() {
if !services().globals.config.rocksdb_periodic_cleanup {
return;
}
let start = Instant::now();
if let Err(e) = services().globals.cleanup() {
error!(target: "database-cleanup", "Ran into an error during cleanup: {}", e);