Loading TOC...

MarkLogic 10 Product Documentation
flexrep:pull-set-enabled

flexrep:pull-set-enabled(
   $pull as element(flexrep:pull),
   $flag as xs:boolean
) as element(flexrep:pull)

Summary

Set the enabled flag for a pull. This provides a way for a target cluster to disable pull replication when necessary.

Parameters
pull The pull configuration.
flag True if the pull is enabled, false if it is disabled.

Example


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

flexrep:pull-insert(
  flexrep:pull-set-enabled(
    $pull, fn:not(flexrep:pull-get-enabled($pull))))
    

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.