Changeset

2654:9e5015555fff

mod_storage_memory: Fix to make archive:append() return the archive id as it should
author Kim Alvefur <zash@zash.se>
date Thu, 30 Mar 2017 23:33:45 +0200
parents 2653:96eabf8591a6
children 2655:f4353f959460
files mod_storage_memory/mod_storage_memory.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_storage_memory/mod_storage_memory.lua	Thu Mar 30 21:12:14 2017 +0200
+++ b/mod_storage_memory/mod_storage_memory.lua	Thu Mar 30 23:33:45 2017 +0200
@@ -86,7 +86,7 @@
 	end
 	a[i] = v;
 	a[key] = i;
-	return true;
+	return key;
 end
 
 local function archive_iter (a, start, stop, step, limit, when_start, when_end, match_with)