зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1195930 - Part 10: Use extra durability mode for storage.sqlite; r=asuth
This commit is contained in:
Родитель
111f87a355
Коммит
2b9890e7bd
|
@ -221,6 +221,14 @@ CreateStorageConnection(nsIFile* aStorageFile,
|
|||
return rv;
|
||||
}
|
||||
|
||||
// We want extra durability for this important file.
|
||||
rv = connection->ExecuteSimpleSQL(NS_LITERAL_CSTRING(
|
||||
"PRAGMA synchronous = EXTRA;"
|
||||
));
|
||||
if (NS_WARN_IF(NS_FAILED(rv))) {
|
||||
return rv;
|
||||
}
|
||||
|
||||
// Check to make sure that the database schema is correct.
|
||||
int32_t schemaVersion;
|
||||
rv = connection->GetSchemaVersion(&schemaVersion);
|
||||
|
|
Загрузка…
Ссылка в новой задаче