Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(329)

Unified Diff: sync/syncable/on_disk_directory_backing_store.cc

Issue 1016563005: Increase page size for SyncData DB from 4K to maximum supported 32K (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sync/syncable/directory_backing_store_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/syncable/on_disk_directory_backing_store.cc
diff --git a/sync/syncable/on_disk_directory_backing_store.cc b/sync/syncable/on_disk_directory_backing_store.cc
index dcbaeddb9cd232ecf60ac006a2142d6a66f4c6de..834db69353d58541b7cbe56e665b9ad6c57dd9e7 100644
--- a/sync/syncable/on_disk_directory_backing_store.cc
+++ b/sync/syncable/on_disk_directory_backing_store.cc
@@ -29,7 +29,7 @@ OnDiskDirectoryBackingStore::OnDiskDirectoryBackingStore(
allow_failure_for_test_(false),
backing_filepath_(backing_filepath) {
db_->set_exclusive_locking();
- db_->set_page_size(4096);
+ db_->set_page_size(databasePageSize_);
}
OnDiskDirectoryBackingStore::~OnDiskDirectoryBackingStore() { }
@@ -85,7 +85,7 @@ DirOpenResult OnDiskDirectoryBackingStore::Load(
// brittle. Either have a helper to set these up (or generate a new
// connection), or add something like Reset() to sql::Connection.
db_->set_exclusive_locking();
- db_->set_page_size(4096);
+ db_->set_page_size(databasePageSize_);
db_->set_histogram_tag("SyncDirectory");
base::DeleteFile(backing_filepath_, false);
« no previous file with comments | « sync/syncable/directory_backing_store_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698