diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-09-02 20:24:41 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-09-02 20:24:41 +0400 |
commit | 07a2e0b3c8ac8249f35423ab79b23b6b5ab11c51 (patch) | |
tree | 231437d521e228e95de289f15b1fcc4878db4b03 /test | |
parent | 5086821ae43d0283ed8b839c847ca267c3c81d2c (diff) | |
download | rspamd-07a2e0b3c8ac8249f35423ab79b23b6b5ab11c51.tar.gz rspamd-07a2e0b3c8ac8249f35423ab79b23b6b5ab11c51.zip |
* Many fixes to statfile syncronization system
* Fixed statfile pool initialization and synchronization with disk
Diffstat (limited to 'test')
-rw-r--r-- | test/rspamd_statfile_test.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/rspamd_statfile_test.c b/test/rspamd_statfile_test.c index 2ada1836e..7a36a848d 100644 --- a/test/rspamd_statfile_test.c +++ b/test/rspamd_statfile_test.c @@ -10,12 +10,14 @@ void rspamd_statfile_test_func () { statfile_pool_t *pool; + memory_pool_t *p; stat_file_t *st; uint32_t random_hashes[HASHES_NUM], i, v; time_t now; + p = memory_pool_new (memory_pool_get_size ()); umask (S_IWGRP | S_IWOTH); - pool = statfile_pool_new (10 * 1024 * 1024); + pool = statfile_pool_new (p, 10 * 1024 * 1024); now = time (NULL); /* Fill random array */ |