commit 852f2c7: [Fix] Save symcache on exit

Vsevolod Stakhov vsevolod at highsecure.ru
Thu Apr 15 15:28:05 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-04-15 16:26:50 +0100
URL: https://github.com/rspamd/rspamd/commit/852f2c7f209507fe0a80da9a9b1c43f610179fb5 (HEAD -> master)

[Fix] Save symcache on exit

---
 src/rspamd.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/rspamd.c b/src/rspamd.c
index 4f035324d..1d8eeaee6 100644
--- a/src/rspamd.c
+++ b/src/rspamd.c
@@ -1621,6 +1621,10 @@ main (gint argc, gchar **argv, gchar **env)
 			rspamd_main->cfg->history_file);
 	}
 
+	if (rspamd_main->cfg->cache) {
+		rspamd_symcache_save(rspamd_main->cfg->cache);
+	}
+
 	msg_info_main ("terminating...");
 
 	REF_RELEASE (rspamd_main->cfg);


More information about the Commits mailing list