aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-03-22 02:09:38 +0100
committerKim Alvefur <zash@zash.se>2019-03-22 02:09:38 +0100
commit7e9722a7362c9e7ffd6cca6c756ee61acc52ff93 (patch)
tree98dd54e88fa0a1bd25e4e3e7509fc6eb27f78b21 /plugins
parent92595546031e1f8a6222e9e164f8cca45e949bdf (diff)
downloadprosody-7e9722a7362c9e7ffd6cca6c756ee61acc52ff93.tar.gz
prosody-7e9722a7362c9e7ffd6cca6c756ee61acc52ff93.zip
mod_storage_sql: Don't increment counter twice (fixes accounting error)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_storage_sql.lua1
1 files changed, 0 insertions, 1 deletions
diff --git a/plugins/mod_storage_sql.lua b/plugins/mod_storage_sql.lua
index 3028bb72..154daf06 100644
--- a/plugins/mod_storage_sql.lua
+++ b/plugins/mod_storage_sql.lua
@@ -285,7 +285,6 @@ function archive_store:append(username, key, value, when, with)
archive_item_count_cache:set(cache_key, item_count);
end
else
- item_count = item_count + 1;
key = uuid.generate();
end
local t, encoded_value = assert(serialize(value));