admin.databaseForeignReplicaGetLagLimit( foreign-replica as element(db.foreignReplica) ) as Number
This function returns the lag limit value from the replica database configuration.
Parameters | |
---|---|
foreign-replica | The configuration element for the foreign replica database. |
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-lag-limit($freplica) (: Returns the lag limit setting from the foreign replica database configuration element. :)