MarkLogic 10 Product Documentation
admin.databaseForeignReplicaGetLagLimit

admin.databaseForeignReplicaGetLagLimit(
   foreign-replica as element(db.foreignReplica)
) as Number

Summary

This function returns the lag limit value from the replica database configuration.

Parameters
foreign-replica The configuration element for the foreign replica database.

Example


  let admin = require("/MarkLogic/admin.xqy")
  let cfg = admin.getConfiguration()
  let freplica = admin.databaseGetForeignReplicas(cfg, xdmp.database("Documents"))
  admin.databaseForeignReplicaGetLagLimit(fn.head(freplica))
    
Powered by MarkLogic Server | Terms of Use | Privacy Policy