anchor.diff:      DocId = build_commit_doc_id(Rep, Vb),
       case couch_db:open_doc_int(DB, DocId, [ejson_body]) of
           {ok, #doc{body = Body}} ->
  -            parse_validate_checkpoint_doc(Rep, Vb, Body, ApiRequestBase);
  +            parse_validate_checkpoint_doc(Vb, Body, ApiRequestBase);
           {not_found, _} ->
               ?xdcr_debug("Found no local checkpoint document for vb: ~B. Will start from scratch", [Vb]),
               handle_no_checkpoint(ApiRequestBase)
  
positive.code:      TotalDataReplicated,
       RemoteVBOpaque}.
  
  parse_validate_checkpoint_doc(Rep, Vb, Body, ApiRequestBase) ->
      try
          do_parse_validate_checkpoint_doc(Rep, Vb, Body, ApiRequestBase)
      catch T:E ->
              S = erlang:get_stacktrace(),
              ?xdcr_debug("Got parse_validate_checkpoint_doc exception: ~p:~p~n~p", [T, E, S]),
              erlang:raise(T, E, S)
      end.
  
  do_parse_validate_checkpoint_doc(Rep, Vb, Body0, ApiRequestBase) ->
      Body = case Body0 of
                 {XB} -> XB;
                 _ -> []
  
negative.code: -export([do_checkpoint/1]).
  -export([read_validate_checkpoint/3]).
  -export([get_local_vbuuid/2]).
  -export([build_request_base/4]).
  
  -include("xdc_replicator.hrl").
  