Bug 456910 - Stop using exclusive locking in places

This allows us to greatly reduce the number of fsyncs when upgrading to sqlite.
The perf loss in no longer using this locking is not significant (10^-6 %).
r=dietrich
This commit is contained in:
Shawn Wilsher 2008-09-25 13:50:41 -04:00
Родитель b9eca5db7e
Коммит 806eded4d9
1 изменённых файлов: 0 добавлений и 6 удалений

Просмотреть файл

@ -794,12 +794,6 @@ nsNavHistory::InitDB(PRInt16 *aMadeChanges)
rv = mDBConn->ExecuteSimpleSQL(cacheSizePragma);
NS_ENSURE_SUCCESS(rv, rv);
// lock the db file
// http://www.sqlite.org/pragma.html#pragma_locking_mode
rv = mDBConn->ExecuteSimpleSQL(
NS_LITERAL_CSTRING("PRAGMA locking_mode = EXCLUSIVE"));
NS_ENSURE_SUCCESS(rv, rv);
// moz_places
if (!tableExists) {
*aMadeChanges = DB_MIGRATION_CREATED;