# HG changeset patch # User Kim Alvefur # Date 1432071039 -7200 # Node ID c619425dafe7b06da457eb79d39bc98c8a537b5c # Parent 0a21b16b9075a9918d13ab75c7ea3c0b20eea04b mod_storage_gdbm: Reorganize (vacuum) databases on module unload diff -r 0a21b16b9075 -r c619425dafe7 mod_storage_gdbm/mod_storage_gdbm.lua --- 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