aboutsummaryrefslogtreecommitdiffstats
path: root/src/fuzzy_storage.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-06-21 13:00:47 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-06-21 13:00:47 +0100
commit24530e0332178850c76e97910da4ed5b5af9df86 (patch)
tree18864d77d67824b29c299b7e3641b7de1565e9e7 /src/fuzzy_storage.c
parentc9fd0f20df16b7cf1563336ca42507bee89abf35 (diff)
downloadrspamd-24530e0332178850c76e97910da4ed5b5af9df86.tar.gz
rspamd-24530e0332178850c76e97910da4ed5b5af9df86.zip
[Feature] Update fuzzy timestamp when adding value
Diffstat (limited to 'src/fuzzy_storage.c')
-rw-r--r--src/fuzzy_storage.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c
index 04498f84d..31cde97a1 100644
--- a/src/fuzzy_storage.c
+++ b/src/fuzzy_storage.c
@@ -394,7 +394,6 @@ rspamd_fuzzy_process_updates_queue (struct rspamd_fuzzy_storage_ctx *ctx,
gpointer ptr;
struct rspamd_fuzzy_mirror *m;
guint nupdates = 0, i;
- time_t now = time (NULL);
if (ctx->updates_pending &&
g_queue_get_length (ctx->updates_pending) > 0 &&
@@ -414,7 +413,7 @@ rspamd_fuzzy_process_updates_queue (struct rspamd_fuzzy_storage_ctx *ctx,
}
if (cmd->cmd == FUZZY_WRITE) {
- rspamd_fuzzy_backend_add (ctx->backend, ptr, now);
+ rspamd_fuzzy_backend_add (ctx->backend, ptr);
}
else {
rspamd_fuzzy_backend_del (ctx->backend, ptr);