aboutsummaryrefslogtreecommitdiffstats
path: root/src/kvstorage.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kvstorage.c')
-rw-r--r--src/kvstorage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kvstorage.c b/src/kvstorage.c
index 511526336..bc9e600bc 100644
--- a/src/kvstorage.c
+++ b/src/kvstorage.c
@@ -93,7 +93,7 @@ rspamd_kv_storage_insert_internal (struct rspamd_kv_storage *storage, gpointer k
}
/* Now check limits */
- while (storage->memory + len > storage->max_memory || storage->elts >= storage->max_elts) {
+ while (storage->memory + len > storage->max_memory) {
if (storage->expire) {
storage->expire->step_func (storage->expire, storage, time (NULL), steps);
}