Loading TOC...

flexrep:upgrade-appserver

flexrep:upgrade-appserver(
   $cfg as element(configuration),
   $ids as xs:unsignedLong*
) as element(configuration)

Summary

This function is used by appserver upgrade code. Users shouldn't typically need to call this function directly.

Parameters
$cfg The replication configuration to use to upgrade the App Server.
$ids The ID of the App Server(s) to be upgraded. Typically, this is the result of an admin:appserver-get-id call.

Usage Notes

Use this function to upgrade a package created on MarkLogic 7, to MarkLogic 8 settings, and apply those settings to a MarkLogic 8 cluster.

Example


xquery version "1.0-ml"; 
 
import module namespace flexrep = "http://marklogic.com/xdmp/flexible-replication" 
      at "/MarkLogic/flexrep.xqy";
	  
let $cfg := admin:get-configuration()
let $ids :=
  ( admin:appserver-get-id($cfg, xdmp:group("Default"), "FlexRep-foo"),
    admin:appserver-get-id($cfg, xdmp:group("Default"), "FlexRep-bar")
  )
return
  admin:save-configuration(
    flexrep:upgrade-appserver($cfg, $ids))
    

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