Loading TOC...

MarkLogic 12 EA 1 Product Documentation
xdmp:forest-open-replica

xdmp:forest-open-replica(
   $forestIDs as xs:unsignedLong*
) as xs:unsignedLong*

Summary

Returns the forest ID for each specified forest or for each forest's replica if the forest is currently experiencing a local disk failover.

Parameters
forestIDs The IDs of the forests that may have failed over.

Example

xdmp:forest-status(
  xdmp:forest-open-replica(
    xdmp:database-forests(xdmp:database("Documents"))))

=> returns the status for each active and open forest in the Documents
   database, whether the forests are masters or replicas

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.