Loading TOC...

MarkLogic Server 11.0 Product Documentation
tieredstorage:partition-set-updates-allowed

tieredstorage:partition-set-updates-allowed(
   $database-id as xs:unsignedLong,
   $partition-name as xs:string,
   $value as xs:string
) as empty-sequence()

Summary

This function sets update-allowed state for the forests in the specified partition. For details, see Tiered Storage in the Administrator's Guide.

Parameters
database-id ID of the database in which the partition will reside.
partition-name Name of the partition.
value The new updates-allowed state of the partition. Must be one of all for all updates allowed, delete-only for only deletes allowed, read-only for no updates allowed and to cause updating transactions to abort immediately, flash-backup for no updates allowed and to make updating transactions retry for a time period specified in the group's retry timeout. These are the same setting as used on the forests, as described in Forests in the Administrator's Guide.

Example

xquery version "1.0-ml";
import module namespace ts="http://marklogic.com/xdmp/tieredstorage" 
          at "/MarkLogic/tieredstorage.xqy";

ts:partition-set-updates-allowed(xdmp:database("Documents"), "2012-April", "all")
=>
()
  

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