anchor.diff:                  update_locally(Bucket, DocId, VBucket, DocValue, DocRev, DocDeleted, CAS);
               {memcached_error, not_my_vbucket, _} ->
                   {error, {bad_request, not_my_vbucket}};
  -            {ok, {OurSeqNo, OurRevId}, _Deleted, LocalCAS} ->
  +            {ok, {OurSeqNo, OurRevId}, LocalCAS} ->
                   RemoteFullMeta = {DocSeqNo, DocRevId},
                   LocalFullMeta = {OurSeqNo, OurRevId},
                   case max(LocalFullMeta, RemoteFullMeta) of
  
positive.code:             true;
          {memcached_error, not_my_vbucket, _} ->
              throw({bad_request, not_my_vbucket});
          {ok, LocalMeta, _Deleted, _CAS} ->
               %% we do not have any information about deletedness of
               %% the remote side thus we use only revisions to
               %% determine a winner
  
negative.code: -export([get_missing_revs/2, update_replicated_docs/3]).
  
  -include("xdc_replicator.hrl").
  -include("mc_entry.hrl").
  -include("mc_constants.hrl").
  
  %% public functions
  get_missing_revs(#db{name = DbName}, JsonDocIdRevs) ->
  