mirror of
https://forgejo.ellis.link/continuwuation/continuwuity/
synced 2026-10-24 03:42:29 +00:00
conf item to toggle periodic cleanup for rocksdb
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
1 parent
865b5d7241
commit
bade4ed17f
3 files changed
+12
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user