Vacuum database automatically on successful integrity check
Firefox does this for Places, so we might as well too.
This commit is contained in:
parent
6ffd7b11cb
commit
e551777989
1 changed files with 8 additions and 0 deletions
|
@ -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';
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue