anchor.diff:  -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) ->
  
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:             {error, {bad_request, einval}}
      end.
  
  
  get_meta(Bucket, VBucket, DocId) ->
      case ns_memcached:get_meta(Bucket, DocId, VBucket) of
          {ok, _Header, #mc_entry{cas = CAS} = _Entry, {revid, Rev}} ->
              {ok, Rev, CAS};
          Other ->
              Other
      end.
  