mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
Bug 762083 - Fix default database size. r=mak
This commit is contained in:
parent
4bbefb860b
commit
a3afb8e59d
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user