mod_storage_gdbm/mod_storage_gdbm.lua
changeset 1760 c619425dafe7
parent 1758 c04d10557bbc
child 1764 e72f9eac51c8
--- a/mod_storage_gdbm/mod_storage_gdbm.lua	Tue May 19 23:29:37 2015 +0200
+++ b/mod_storage_gdbm/mod_storage_gdbm.lua	Tue May 19 23:30:39 2015 +0200
@@ -170,6 +170,7 @@
 function module.unload()
 	for db_path, db in pairs(cache) do
 		module:log("debug", "Closing db at %q", db_path);
+		gdbm.reorganize(db);
 		gdbm.sync(db);
 		gdbm.close(db);
 	end