aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_storage_sql.lua
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
commit3e5243f2d2df3e4933a9bd7fdaf13c848265178e (patch)
tree98dd54e88fa0a1bd25e4e3e7509fc6eb27f78b21 /plugins/mod_storage_sql.lua
parentc4b5bfdc5f2da4cdbe085a5a95c6418f802ec56e (diff)
downloadprosody-3e5243f2d2df3e4933a9bd7fdaf13c848265178e.tar.gz
prosody-3e5243f2d2df3e4933a9bd7fdaf13c848265178e.zip
mod_storage_sql: Don't increment counter twice (fixes accounting error)
Diffstat (limited to 'plugins/mod_storage_sql.lua')
-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));