Bug 1168166 - Ignore failed IndexedDB optimization if disk is too full, r=janv.

This commit is contained in:
Ben Turner 2015-06-08 11:11:18 -07:00
parent 35fad51614
commit 5c7efc9f6c

View File

@ -3640,9 +3640,11 @@ SetDefaultPragmas(mozIStorageConnection* aConnection)
#ifndef IDB_MOBILE
if (kSQLiteGrowthIncrement) {
// This is just an optimization so ignore the failure if the disk is
// currently too full.
rv = aConnection->SetGrowthIncrement(kSQLiteGrowthIncrement,
EmptyCString());
if (NS_WARN_IF(NS_FAILED(rv))) {
if (rv != NS_ERROR_FILE_TOO_BIG && NS_WARN_IF(NS_FAILED(rv))) {
return rv;
}
}