Skip to content

Commit

Permalink
Fixed marklogic-community#282: catching and logging orphaned amps
Browse files Browse the repository at this point in the history
  • Loading branch information
grtjn committed Feb 23, 2015
1 parent 930b3a8 commit 697381c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion deploy/lib/xquery/setup.xqy
Original file line number Diff line number Diff line change
Expand Up @@ -5072,7 +5072,12 @@ declare function setup:get-amps($ids as xs:unsignedLong*) as element(sec:amps)?
{
if ($amp/sec:database = 0) then "filesystem"
else
xdmp:database-name($amp/sec:database)
try {
xdmp:database-name($amp/sec:database)
} catch ($e) {
xdmp:log(("Roxy WARN: Orphaned amp detected", $amp)),
"(missing)"
}
}
}
}</amps>
Expand Down

0 comments on commit 697381c

Please sign in to comment.