@@ -705,24 +705,25 @@ func IsInConflict(ctx context.Context, localHLV, incomingHLV *HybridLogicalVecto
705
705
706
706
// check if incoming CV and local CV are the same. This is needed here given that if both CV's are the same the
707
707
// below check to check local revision is newer than incoming revision will pass given the check and will add the
708
- // incoming versions even if CV's are the same
708
+ // incoming versions even if CVs are the same
709
709
if localCV .Equal (* incomingCV ) {
710
- base .DebugfCtx (ctx , base .KeyCRUD , "incoming CV %#+v is equal to local revision %#+v" , incomingCV , localCV )
710
+ base .TracefCtx (ctx , base .KeyVV , "incoming CV %#+v is equal to local revision %#+v" , incomingCV , localCV )
711
711
return false , ErrNoNewVersionsToAdd
712
712
}
713
713
714
714
// standard no conflict case. In the simple case, this happens when:
715
- // - SG writes document 1@cbs1
716
- // - CBL pulls document 1@cbs1
717
- // - SG writes document 2@cbs1
715
+ // - Client A writes document 1@cbs1
716
+ // - Client B pulls document 1@cbs1 from Client A
717
+ // - Client A writes document 2@cbs1
718
+ // - Client B pulls document 2@cbs1 from Client A
718
719
if incomingHLV .DominatesSource (* localCV ) {
719
720
return false , nil
720
721
}
721
722
722
723
// local revision is newer than incoming revision. Common case:
723
- // - CBL writes document 1@cbl1
724
- // - CBL pushes to SG as 1@cbl1
725
- // - CBL pulls document 1@cbl1
724
+ // - Client A writes document 1@cbl1
725
+ // - Client A pushes to Client B as 1@cbl1
726
+ // - Client A pulls document 1@cbl1 from Client B
726
727
//
727
728
// NOTE: without P2P replication, this should not be the case and we would not get this revision, since CBL
728
729
// would respond to a SG changes message that CBL does not need this revision
0 commit comments