зеркало из https://github.com/mozilla/gecko-dev.git
Bug 888784 - Make FormHistory.expireOldEntries use new Sqlite.jsm database backend. r=mak
MozReview-Commit-ID: KSaWz0s6hF1 --HG-- extra : rebase_source : 178156594da605c4891bf00fa331f30711426410
This commit is contained in:
Родитель
daff78e9e9
Коммит
9bc8273562
|
@ -865,13 +865,12 @@ function expireOldEntriesVacuum(aExpireTime, aBeginningCount) {
|
|||
if (aBeginningCount - aEndingCount > 500) {
|
||||
log("expireOldEntriesVacuum");
|
||||
|
||||
let stmt = dbCreateAsyncStatement("VACUUM");
|
||||
stmt.executeAsync({
|
||||
handleResult: NOOP,
|
||||
handleError(aError) {
|
||||
FormHistory.db.then(async conn => {
|
||||
try {
|
||||
await conn.executeCached("VACUUM");
|
||||
} catch (e) {
|
||||
log("expireVacuumError");
|
||||
},
|
||||
handleCompletion: NOOP,
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче