summaryrefslogtreecommitdiffstats
path: root/src/fuzzy_storage.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-06-14 10:27:13 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-06-14 10:27:13 +0100
commit99886642f9a7570895a41287d2d5908a325b32c4 (patch)
tree17ca796ef9cbff4d0f8f01bd3d1754f3acf8d35d /src/fuzzy_storage.c
parent34a8c93ce30342a01f0f5ba6b88d625c45974332 (diff)
downloadrspamd-99886642f9a7570895a41287d2d5908a325b32c4.tar.gz
rspamd-99886642f9a7570895a41287d2d5908a325b32c4.zip
[Fix] Fix abstract context layout
Diffstat (limited to 'src/fuzzy_storage.c')
-rw-r--r--src/fuzzy_storage.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c
index 99b98ceff..6ffecf093 100644
--- a/src/fuzzy_storage.c
+++ b/src/fuzzy_storage.c
@@ -124,6 +124,13 @@ static const guint64 rspamd_fuzzy_storage_magic = 0x291a3253eb1b3ea5ULL;
struct rspamd_fuzzy_storage_ctx {
guint64 magic;
+ /* Events base */
+ struct event_base *ev_base;
+ /* DNS resolver */
+ struct rspamd_dns_resolver *resolver;
+ /* Config */
+ struct rspamd_config *cfg;
+ /* END OF COMMON PART */
struct fuzzy_global_stat stat;
char *hashfile;
gdouble expire;
@@ -139,7 +146,6 @@ struct rspamd_fuzzy_storage_ctx {
const ucl_object_t *masters_map;
GHashTable *master_flags;
guint keypair_cache_size;
- struct event_base *ev_base;
gint peer_fd;
struct event peer_ev;
struct event stat_ev;
@@ -160,8 +166,6 @@ struct rspamd_fuzzy_storage_ctx {
guint updates_failed;
guint updates_maxfail;
guint32 collection_id;
- struct rspamd_dns_resolver *resolver;
- struct rspamd_config *cfg;
struct rspamd_worker *worker;
struct rspamd_http_connection_router *collection_rt;
guchar cookie[COOKIE_SIZE];