anchor.diff:      Start = now(),
       {Succ, ErrorMsg, NewState} = case TimeSinceLastCkpt > IntervalSecs of
                                        true ->
  -                                         misc:flush(checkpoint),
                                            xdc_vbucket_rep_ckpt:do_checkpoint(State1);
                                        _ ->
                                            {ok, <<"no checkpoint">>, State1}
  
positive.code:             couch_api_wrap:db_close(State2#rep_state.tgt_master_db),
              %% force check for changes since we last snapshop
              self() ! src_db_updated,
              misc:flush(checkpoint),
  
              %% changes may or may not be closed
              VbStatus2 = VbStatus#rep_vb_status{size_changes_queue = 0,
  
negative.code:                      NewState = xdc_vbucket_rep_ckpt:cancel_timer(State),
                       {ok, NewState}
               end,
  
      case Result of
          {ok, NewState3} ->
  