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

Unified Diff: sync/syncable/directory_backing_store.h

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
Index: sync/syncable/directory_backing_store.h
diff --git a/sync/syncable/directory_backing_store.h b/sync/syncable/directory_backing_store.h
index 254fff4d8e7477d9286eebc956e68b4a985f6cfc..2246237d000e331c26e9517c34cdd94fedae4405 100644
--- a/sync/syncable/directory_backing_store.h
+++ b/sync/syncable/directory_backing_store.h
@@ -44,6 +44,10 @@ struct ColumnSpec;
// in tests. The concrete class used in non-test scenarios is
// OnDiskDirectoryBackingStore.
class SYNC_EXPORT_PRIVATE DirectoryBackingStore : public base::NonThreadSafe {
+ friend class DirectoryBackingStoreTest;
+ FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest,
+ IncreaseDatabasePageSizeFrom4KTo32K);
+
public:
explicit DirectoryBackingStore(const std::string& dir_name);
virtual ~DirectoryBackingStore();
@@ -144,6 +148,12 @@ class SYNC_EXPORT_PRIVATE DirectoryBackingStore : public base::NonThreadSafe {
bool SetVersion(int version);
int GetVersion();
+ bool GetDatabasePageSize(int* page_size);
+ bool IsSyncBackingDatabase32KEnabled();
+ bool IncreasePageSizeTo32K();
+ bool Vacuum();
+ int databasePageSize;
stanisc 2015/03/18 15:10:45 Member field should have an underscore at the end.
Gang Wu 2015/05/21 18:38:17 Done.
+
bool MigrateToSpecifics(const char* old_columns,
const char* specifics_column,
void(*handler_function) (

Powered by Google App Engine
This is Rietveld 408576698