Changeset

9889:e3ad2c845431

mod_storage_sql: Don't increment counter twice (fixes accounting error)
author Kim Alvefur <zash@zash.se>
date Fri, 22 Mar 2019 02:09:38 +0100
parents 9888:5669bb11ac7b
children 9890:b5ac12f97f34
files plugins/mod_storage_sql.lua
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_storage_sql.lua	Fri Mar 22 02:04:34 2019 +0100
+++ b/plugins/mod_storage_sql.lua	Fri Mar 22 02:09:38 2019 +0100
@@ -285,7 +285,6 @@
 				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));