Bug 888784 - Make FormHistory update transaction immediate. r?mak
The transaction was immediate before when using mozIStorageService, but
accidentally used the deferred default when transitioned to Sqlite.jsm.
This puts us back into the immediate mode for update transactions.
MozReview-Commit-ID: 9apF4o6GFI7
--- a/toolkit/components/satchel/FormHistory.jsm
+++ b/toolkit/components/satchel/FormHistory.jsm
@@ -486,17 +486,17 @@ async function updateFormHistoryWrite(aC
* @param {Object} queries query string and param pairs generated
* by updateFormHistoryWrite
*/
async function runUpdateQueries(conn, queries) {
await conn.executeTransaction(async () => {
for (let { query, params } of queries) {
await conn.executeCached(query, params);
}
- });
+ }, conn.TRANSACTION_IMMEDIATE);
}
/**
* Functions that expire entries in form history and shrinks database
* afterwards as necessary initiated by expireOldEntries.
*/
/**