summaryrefslogtreecommitdiffstats
path: root/src/libutil/logger.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-21 16:09:41 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-21 16:09:41 +0100
commit85f08724d0c9d5461ce00e1d86217753afe2681c (patch)
tree736a070eabd32c508dde181e079a7a4778b1d54f /src/libutil/logger.c
parentecb4f9933341f7b0878972255fa7af3e1fb45528 (diff)
downloadrspamd-85f08724d0c9d5461ce00e1d86217753afe2681c.tar.gz
rspamd-85f08724d0c9d5461ce00e1d86217753afe2681c.zip
Use 64 bit hash for logger.
Diffstat (limited to 'src/libutil/logger.c')
-rw-r--r--src/libutil/logger.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libutil/logger.c b/src/libutil/logger.c
index fdfc79ba7..b948deaf1 100644
--- a/src/libutil/logger.c
+++ b/src/libutil/logger.c
@@ -56,10 +56,10 @@ struct rspamd_logger_s {
sig_atomic_t do_reopen_log;
enum rspamd_log_type type;
pid_t pid;
+ guint32 repeats;
GQuark process_type;
radix_compressed_t *debug_ip;
- guint32 last_line_cksum;
- guint32 repeats;
+ guint64 last_line_cksum;
gchar *saved_message;
gchar *saved_function;
rspamd_mempool_t *pool;
@@ -83,10 +83,10 @@ file_log_function (const gchar * log_domain, const gchar *function,
/**
* Calculate checksum for log line (used for repeating logic)
*/
-static inline guint32
+static inline guint64
rspamd_log_calculate_cksum (const gchar *message, size_t mlen)
{
- return XXH32 (message, mlen, rspamd_hash_seed ());
+ return XXH64 (message, mlen, rspamd_hash_seed ());
}
/*