admin:can-commit-upgrade() as xs:boolean
This function returns true
if the cluster is ready to commit
the upgrade, returns false
otherwise.
http://marklogic.com/xdmp/privileges/admin/cluster
xquery version "1.0-ml"; import module namespace admin = "http://marklogic.com/xdmp/admin" at "/MarkLogic/admin.xqy"; return admin:can-commit-upgrade() (: returns true if the cluster is ready to commit the upgrade :)