MarkLogic Server 11.0 Product Documentation
flexrep:do-pull

flexrep:do-pull(
   $pull as element(flexrep:pull)
) as element()*

Summary

This function is used by a Replica to pull updates from the Master. It returns a list of elements; the first element is the response element that was set back to the master, followed by one or more flexrep:ack elements that were posted back to the master.

Parameters
pull The pull replication configuration returned by the flexrep:pull-get function.

Example

  xquery version "1.0-ml"; 

  import module namespace flexrep = "http://marklogic.com/xdmp/flexible-replication" 
      at "/MarkLogic/flexrep.xqy";

  let $pull := flexrep:pull-get(8720056888183458895) 

  return flexrep:do-pull($pull)

  (: Returns the response and ACK elements last sent to the master. :)
     

Required Privileges

http://marklogic.com/xdmp/privileges/flexrep-user

Powered by MarkLogic Server | Terms of Use | Privacy Policy