From 092a40dcf813accb11a0b6bb600dccea0b35fb1d Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 12 Nov 2009 20:38:20 +0300 Subject: * Write revision and revision time to statfile * Make some improvements to API (trying to make it more clear) --- src/binlog.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/binlog.h') diff --git a/src/binlog.h b/src/binlog.h index 84fba3db6..dbf22ee43 100644 --- a/src/binlog.h +++ b/src/binlog.h @@ -44,6 +44,7 @@ struct rspamd_binlog { time_t rotate_time; int rotate_jitter; uint64_t cur_seq; + uint64_t cur_time; int fd; memory_pool_t *pool; @@ -58,6 +59,6 @@ struct rspamd_binlog* binlog_open (memory_pool_t *pool, const char *path, time_t void binlog_close (struct rspamd_binlog *log); gboolean binlog_insert (struct rspamd_binlog *log, GTree *nodes); gboolean binlog_sync (struct rspamd_binlog *log, uint64_t from_rev, uint64_t from_time, GByteArray **rep); -void maybe_write_binlog (struct classifier_config *ccf, const char *symbol, GTree *nodes); +gboolean maybe_write_binlog (struct classifier_config *ccf, struct statfile *st, stat_file_t *file, GTree *nodes); #endif -- cgit v1.2.3