]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Reset mods counter on cache file sync.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 11 Jun 2013 15:55:22 +0000 (16:55 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 11 Jun 2013 15:55:22 +0000 (16:55 +0100)
src/fuzzy_storage.c

index 919d9e4c8e8d4c7492c29e27e4648e3169fffbf5..c5ceb1b1c37fa780b725a16af779af7c61af08db 100644 (file)
@@ -334,6 +334,7 @@ sync_cache (gpointer ud)
                        expire_nodes (nodes_expired, expired_num, ctx);
                        rspamd_rwlock_writer_unlock (ctx->tree_lock);
                }
+               mods = 0;
 end:
                if (nodes_expired != NULL) {
                        g_free (nodes_expired);