Commit 08e6b4a
authored
* CBL-7565: Replicator stopped with Duplicate ID in version vector error when pushing a doc
The cause of this bug is the following. In LiteCore, a Version an HLV may use a special SourceID (kMeSourceID). It stands for the SourceID of whatever database it belongs to. When putting in BLIP message, it is expanded to actual SourceID. The problem is, after rounds of replication, the absolute form of SourceID may come back in the history of a HLV. This caused confustion when the local VV is compared with a VV coming from BLIP messages.
We fixed it in VersionVecWithLegacy::parse where we pass the actual SourceID to the Version constructor to turn absolute form to local form.
1 parent cffb68f commit 08e6b4a
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
0 commit comments