comparison mod_storage_lmdb/mod_storage_lmdb.lua @ 1984:2ed6f6eeeaba

mod_storage_lmdb: Remove debugging
author Kim Alvefur <zash@zash.se>
date Sat, 19 Dec 2015 11:45:39 +0100
parents f7fc5088b340
children
comparison
equal deleted inserted replaced
1983:f7fc5088b340 1984:2ed6f6eeeaba
24 local args, n_args = {...}, select("#", ...); 24 local args, n_args = {...}, select("#", ...);
25 local t = env:txn_begin(nil, flag); 25 local t = env:txn_begin(nil, flag);
26 local function f() return func(t, unpack(args, 1, n_args)); end 26 local function f() return func(t, unpack(args, 1, n_args)); end
27 local success, a, b, c = xpcall(f, traceback); 27 local success, a, b, c = xpcall(f, traceback);
28 if not success then 28 if not success then
29 io.stderr:write(a, "\n\n");
30 t:abort(); 29 t:abort();
31 os.exit()
32 return success, a; 30 return success, a;
33 end 31 end
34 local ok, err = t:commit(); 32 local ok, err = t:commit();
35 if not ok then 33 if not ok then
36 return ok, err; 34 return ok, err;