Bug 762083 - Fix default database size. r=mak

This commit is contained in:
Marco Castelluccio 2014-01-13 09:02:40 -05:00
parent 4bbefb860b
commit a3afb8e59d

View File

@ -598,7 +598,7 @@ Database::InitSchema(bool* aDatabaseMigrated)
// Grow places in |growthIncrementKiB| increments to limit fragmentation on disk.
// By default, it's 10 MB.
int32_t growthIncrementKiB =
Preferences::GetInt(PREF_GROWTH_INCREMENT_KIB, 10 * BYTES_PER_KIBIBYTE * BYTES_PER_KIBIBYTE);
Preferences::GetInt(PREF_GROWTH_INCREMENT_KIB, 10 * BYTES_PER_KIBIBYTE);
if (growthIncrementKiB > 0) {
(void)mMainConn->SetGrowthIncrement(growthIncrementKiB * BYTES_PER_KIBIBYTE, EmptyCString());
}