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:
Shawn Wilsher 2010-10-06 08:21:31 -07:00
parent ee6d14ff57
commit d04448c8b3

View File

@ -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))) {