summaryrefslogtreecommitdiffstats
path: root/src/libutil/map_private.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-07-07 08:36:11 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-07-07 08:36:11 +0100
commit914afe79b8058a3d4f5463859d693fbd3d8679fc (patch)
treeb7859b46929b3605cb815379df1ca70e7ac54e71 /src/libutil/map_private.h
parente902637bcc1f37a2c7f70c50dad641476056ce8a (diff)
downloadrspamd-914afe79b8058a3d4f5463859d693fbd3d8679fc.tar.gz
rspamd-914afe79b8058a3d4f5463859d693fbd3d8679fc.zip
[Feature] Improve maps cached data lifetime
Diffstat (limited to 'src/libutil/map_private.h')
-rw-r--r--src/libutil/map_private.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libutil/map_private.h b/src/libutil/map_private.h
index abb4ef613..fc2d8e279 100644
--- a/src/libutil/map_private.h
+++ b/src/libutil/map_private.h
@@ -66,7 +66,7 @@ struct rspamd_map_backend {
struct rspamd_map_cachepoint {
gint available;
gsize len;
- time_t last_checked;
+ time_t last_modified;
gchar shmem_name[256];
};
@@ -107,8 +107,10 @@ struct http_map_data {
gchar *path;
gchar *host;
gchar *last_signature;
+ time_t last_modified;
time_t last_checked;
gboolean request_sent;
+ guint64 gen;
guint16 port;
};