aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_storage_sql.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-03-22 02:12:02 +0100
committerKim Alvefur <zash@zash.se>2019-03-22 02:12:02 +0100
commit56a9e395ade713122fd2251a64232abd270cadbe (patch)
tree8c26451bc64a5ed8e479f4441eb3999cdecd6ec3 /plugins/mod_storage_sql.lua
parent61edbdb90f50b71c6a13f24e7621b561fef9b3ac (diff)
downloadprosody-56a9e395ade713122fd2251a64232abd270cadbe.tar.gz
prosody-56a9e395ade713122fd2251a64232abd270cadbe.zip
mod_storage_sql: Skip cache write
This would cause the cache to be wrong in case the the later INSERT fails and the transaction is aborted.
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 325fab94..35a16870 100644
--- a/plugins/mod_storage_sql.lua
+++ b/plugins/mod_storage_sql.lua
@@ -282,7 +282,6 @@ function archive_store:append(username, key, value, when, with)
local result, err = engine:delete(delete_sql, host, user or "", store, key);
if result then
item_count = item_count - result:affected();
- archive_item_count_cache:set(cache_key, item_count);
end
else
key = uuid.generate();