mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 16:46:26 +00:00
Bug 599978 - Part 1: Asynchronous isVisited checks should use a read-only cloned connection
Remove the exclusive lock on the places database file. r=mak
This commit is contained in:
parent
ee6d14ff57
commit
d04448c8b3
@ -804,12 +804,6 @@ nsNavHistory::InitDB()
|
||||
rv = mDBConn->ExecuteSimpleSQL(cacheSizePragma);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
// Lock the database file. This is done partly to avoid third party
|
||||
// applications to access it while it's in use, partly for performance.
|
||||
rv = mDBConn->ExecuteSimpleSQL(NS_LITERAL_CSTRING(
|
||||
"PRAGMA locking_mode = EXCLUSIVE"));
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
// Be sure to set journal mode after page_size. WAL would prevent the change
|
||||
// otherwise.
|
||||
if (NS_FAILED(SetJournalMode(JOURNAL_WAL))) {
|
||||
|
Loading…
Reference in New Issue
Block a user