anchor.diff:              true;
           {memcached_error, not_my_vbucket, _} ->
               throw({bad_request, not_my_vbucket});
  -        {ok, LocalMeta, _Deleted, _CAS} ->
  +        {ok, LocalMeta, _CAS} ->
                %% we do not have any information about deletedness of
                %% the remote side thus we use only revisions to
                %% determine a winner
  
positive.code:             {error, {bad_request, einval}}
      end.
  
  -include("mc_entry.hrl").
  -include("mc_constants.hrl").
  
  get_meta(Bucket, VBucket, DocId) ->
      case ns_memcached:get_meta(Bucket, DocId, VBucket) of
          {ok, _Header, #mc_entry{cas=CAS, flag=Flag} = _Entry, {revid, Rev}} ->
              Deleted = ((Flag band ?GET_META_ITEM_DELETED_FLAG) =/= 0),
              {ok, Rev, Deleted, CAS};
          Other ->
              Other
      end.
  
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) ->
  