mod_measure_storage: Assume store type is "keyval" if missing

Sun, 16 Apr 2017 01:02:52 +0200

author
Kim Alvefur <zash@zash.se>
date
Sun, 16 Apr 2017 01:02:52 +0200
changeset 2693
04ae5b45e6c7
parent 2692
785465f8af3d
child 2694
38c66b58b470

mod_measure_storage: Assume store type is "keyval" if missing

mod_measure_storage/mod_measure_storage.lua file | annotate | diff | comparison | revisions
--- a/mod_measure_storage/mod_measure_storage.lua	Sun Apr 16 00:58:02 2017 +0200
+++ b/mod_measure_storage/mod_measure_storage.lua	Sun Apr 16 01:02:52 2017 +0200
@@ -43,7 +43,7 @@
 
 local function hook_event(module)
 	module:hook("store-opened", function(event)
-		event.store = wrap_store(module, event.store_name, event.store_type, event.store);
+		event.store = wrap_store(module, event.store_name, event.store_type or "keyval", event.store);
 	end);
 end
 

mercurial