admin.databaseForeignReplicaGetConnectForestsByName( foreign-replica as element(db.foreignReplica) ) as Boolean
This function returns the connect-forests-by-name setting from the replica database configuration. This function must be executed on the master cluster.
Parameters | |
---|---|
foreign-replica | The configuration element for the foreign replicas. |
xquery version "1.0-ml"; import module namespace admin = "http://marklogic.com/xdmp/admin" at "/MarkLogic/admin.xqy"; let $cfg := admin:get-configuration() let $freplica := admin:database-get-foreign-replicas($cfg, xdmp:database("Documents")) return admin:database-foreign-replica-get-connect-forests-by-name($freplica) (: Returns the connect-forests-by-name setting from the foreign replica database configuration element. :)