diff options
author | Kim Alvefur <zash@zash.se> | 2019-03-22 02:12:02 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-03-22 02:12:02 +0100 |
commit | 79bebb21f83365e33208644f1c0060752f4fc532 (patch) | |
tree | 8c26451bc64a5ed8e479f4441eb3999cdecd6ec3 /plugins/mod_storage_sql.lua | |
parent | 669da78e01c61d83912210877b2c5514360fe7e9 (diff) | |
download | prosody-79bebb21f83365e33208644f1c0060752f4fc532.tar.gz prosody-79bebb21f83365e33208644f1c0060752f4fc532.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.lua | 1 |
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(); |