Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Fixed #457: assign forests to group host 1 instead of default-host #530

Merged
merged 1 commit into from
Jan 27, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deploy/lib/xquery/setup.xqy
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,7 @@ declare function setup:create-forests-from-config(
let $data-directory as xs:string? := $forest-config/as:data-directory[fn:string-length(fn:string(.)) > 0]
let $hosts := admin:group-get-host-ids(admin:get-configuration(), $group-id)
let $host-name as xs:string? := $forest-config/as:host-name[fn:string-length(fn:string(.)) > 0]
let $host-id := if ($host-name) then xdmp:host($host-name) else $default-host
let $host-id := if ($host-name) then xdmp:host($host-name) else $hosts[1]
let $hostnr := fn:index-of($hosts, $host-id)
let $replica-names as xs:string* := $forest-config/as:replica-names/as:replica-name[fn:string-length(fn:string(.)) > 0]
let $replicas :=
Expand Down