www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit e55177798948da38a9ba69609b4d27928bf3029e
parent 6ffd7b11cb0dff2ca6274582d410fdc9d8189eec
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon, 29 May 2017 21:25:23 -0400

Vacuum database automatically on successful integrity check

Firefox does this for Places, so we might as well too.

Diffstat:
Mchrome/content/zotero/preferences/preferences_advanced.js | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/chrome/content/zotero/preferences/preferences_advanced.js b/chrome/content/zotero/preferences/preferences_advanced.js @@ -171,6 +171,14 @@ Zotero_Preferences.Advanced = { return; } + + try { + yield Zotero.DB.vacuum(); + } + catch (e) { + Zotero.logError(e); + ok = false; + } } var str = ok ? 'passed' : 'failed';