diff options
author | haitaol@chromium.org <haitaol@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-10 05:20:11 +0000 |
---|---|---|
committer | haitaol@chromium.org <haitaol@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-10 05:20:11 +0000 |
commit | fc290d614c7fab02dcdaf88b992a0204be23aa90 (patch) | |
tree | 10400ca878d8c999249c694758006aa1d380333a /sync/syncable/syncable_columns.h | |
parent | db06cc16af9cb0eaa766603f2e56f490041665db (diff) | |
download | chromium_src-fc290d614c7fab02dcdaf88b992a0204be23aa90.zip chromium_src-fc290d614c7fab02dcdaf88b992a0204be23aa90.tar.gz chromium_src-fc290d614c7fab02dcdaf88b992a0204be23aa90.tar.bz2 |
Populate versions on individual nodes in sync model and native bookmark model.
Update transaction versions of changed sync models and entries in
syncable::WriteTransaction after change delegate calculates changes and returns
handles of changed entries. For syncer changes, updated version is passed to
change processor and set on native model and nodes. For sync API changes, model
processor queries for new version and set on native model and nodes after write
transaction closes.
BUG=154858
Review URL: https://chromiumcodereview.appspot.com/11341048
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167061 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/syncable/syncable_columns.h')
-rw-r--r-- | sync/syncable/syncable_columns.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sync/syncable/syncable_columns.h b/sync/syncable/syncable_columns.h index f5d48e0..6eda058 100644 --- a/sync/syncable/syncable_columns.h +++ b/sync/syncable/syncable_columns.h @@ -25,6 +25,7 @@ static const ColumnSpec g_metas_columns[] = { {"server_version", "bigint default 0"}, // This is the item ID that we store for the embedding application. {"local_external_id", "bigint default 0"}, + {"transaction_version", "bigint default 0"}, // These timestamps are kept in the same format as that of the // protocol (ms since Unix epoch). {"mtime", "bigint default 0"}, |