flexrep:pull-set-enabled( $pull as element(flexrep:pull), $flag as xs:boolean ) as element(flexrep:pull)
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. |
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: Get the most useful answers to questions from the MarkLogic community, or ask your own question.