anchor.diff:                          Vbuckets)
                   ]}},
       couch_db:update_doc(RepDb, IDoc, [clobber]),
  +    couch_replication_manager:update_rep_doc(IDocId, [{<<"_replication_state">>, <<"triggered">>}]),
       couch_db:close(RepDb),
       ?log_info("~s: created replication info doc ~s~n", [XDocId, IDocId]),
       ok.
  
positive.code:     [] ->
          % A new XDC replication document.
          ?log_info("~s: triggering xdc replication~n", [XDocId]),
          start_xdc_replication(XRep, RepDbName);
      [XDocId] ->
          % An XDC replication document previously seen. Ignore.
          ?log_info("~s: ignoring doc previously seen.~n", [XDocId]),
  
negative.code:             end,
              MyVbuckets),
          true = ets:insert(?XSTORE, {XDocId, XRep, MyVbuckets}),
          create_xdc_rep_info_doc(XDocId, XRepId, MyVbuckets, RepDbName, XDocBody),
          ok
      end.
  
  