summaryrefslogtreecommitdiffstats
path: root/src/kvstorage_server.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-11-08 18:47:37 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-11-08 18:47:37 +0300
commitcf21ad184448908536c32495db26f97bffd3f584 (patch)
treee8f4bf0efbcbbd166f79f26bc6bbc3ff6658028f /src/kvstorage_server.c
parentd8f9f8f6c64001dab5f0357b1c6af93bf6c3eea5 (diff)
downloadrspamd-cf21ad184448908536c32495db26f97bffd3f584.tar.gz
rspamd-cf21ad184448908536c32495db26f97bffd3f584.zip
Implement lazy backend writing using sync_ops = 0.
Allways wait for kvstorage worker to prevent data corruption.
Diffstat (limited to 'src/kvstorage_server.c')
-rw-r--r--src/kvstorage_server.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/kvstorage_server.c b/src/kvstorage_server.c
index d91eaa1c8..a5361057f 100644
--- a/src/kvstorage_server.c
+++ b/src/kvstorage_server.c
@@ -790,6 +790,7 @@ start_kvstorage_worker (struct rspamd_worker *worker)
}
}
+ msg_info ("syncing storages");
destroy_kvstorage_config ();
close_log (rspamd_main->logger);
exit (EXIT_SUCCESS);