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 | 56a9e395ade713122fd2251a64232abd270cadbe (patch) | |
tree | 8c26451bc64a5ed8e479f4441eb3999cdecd6ec3 | |
parent | 61edbdb90f50b71c6a13f24e7621b561fef9b3ac (diff) | |
download | prosody-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.
-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(); |