|
[Sync] Add support for loading, updating and querying delete journals in
Directory.
Delete journals keeps deleted metas until the persistence of the deletes in
native model is confirmed. When an entry is deleted in sync model, a copy is
added to delete journals in memory and saved in database later. Next time when
the client restarts, if some native data doesn't match with sync data but
matches with a delete journal, it's safe to assume that it's because native
delete was not persisted and the native data should be deleted. This helps
prevent back-from-dead problem due to native model and sync model get
out-of-sync.
BUG= 121928
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175248
Total comments: 8
Total comments: 26
Total comments: 2
Total comments: 8
Total comments: 8
Total comments: 10
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+603 lines, -98 lines) |
Patch |
 |
M |
sync/sync.gyp
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
A |
sync/syncable/delete_journal.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+103 lines, -0 lines |
0 comments
|
Download
|
 |
A |
sync/syncable/delete_journal.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
1 chunk |
+144 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/syncable/directory.h
|
View
|
1
2
3
4
5
6
7
8
|
6 chunks |
+10 lines, -10 lines |
0 comments
|
Download
|
 |
M |
sync/syncable/directory.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
11 chunks |
+27 lines, -7 lines |
0 comments
|
Download
|
 |
M |
sync/syncable/directory_backing_store.h
|
View
|
1
2
3
4
5
6
7
8
|
4 chunks |
+22 lines, -5 lines |
0 comments
|
Download
|
 |
M |
sync/syncable/directory_backing_store.cc
|
View
|
1
2
3
4
5
6
7
8
|
7 chunks |
+99 lines, -56 lines |
0 comments
|
Download
|
 |
M |
sync/syncable/directory_backing_store_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
9 chunks |
+20 lines, -12 lines |
0 comments
|
Download
|
 |
M |
sync/syncable/entry_kernel.h
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/syncable/in_memory_directory_backing_store.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
sync/syncable/in_memory_directory_backing_store.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/syncable/invalid_directory_backing_store.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
sync/syncable/invalid_directory_backing_store.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
sync/syncable/mutable_entry.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+12 lines, -1 line |
0 comments
|
Download
|
 |
M |
sync/syncable/on_disk_directory_backing_store.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/syncable/on_disk_directory_backing_store.cc
|
View
|
1
2
3
4
5
6
|
4 chunks |
+9 lines, -3 lines |
0 comments
|
Download
|
 |
M |
sync/syncable/syncable_base_transaction.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
sync/syncable/syncable_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
4 chunks |
+127 lines, -3 lines |
0 comments
|
Download
|
 |
M |
sync/syncable/syncable_write_transaction.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
sync/test/test_directory_backing_store.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
sync/test/test_directory_backing_store.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
Total messages: 19 (0 generated)
|