<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.forestOpenReplica.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.forestOpenReplica</api:function-name><api:suggest>xdmp.forestopenreplica</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>forestopenreplica</api:suggest><api:function-link mode="xquery" fullname="xdmp:forest-open-replica">/apidoc/8.0/xdmp:forest-open-replica.xml</api:function-link><api:function mode="javascript" name="forestOpenReplica" type="builtin" lib="xdmp" category="AdminBuiltins" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.forestOpenReplica"><api: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.
</api:summary><api:params><api:param name="forestIDs" type="xs:unsignedLong*"><api:param-description>
    The IDs of the forests that may have failed over.
  </api:param-description><api:param-name>forestIDs</api:param-name><api:param-type>String[]</api:param-type></api:param></api:params><api:return>ValueIterator</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
xdmp.forestStatus(
  xdmp.forestOpenReplica(
    xdmp.databaseForests(xdmp.database("Documents"))));

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

</pre></api:example></api:function></api:function-page>