This repository has been archived by the owner on Jan 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/1.0.0-alpha.6'
- Loading branch information
Showing
22 changed files
with
370 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
version=1.0.0-alpha.5 | ||
version=1.0.0-alpha.6 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
declare variable $requestId external; | ||
|
||
let $requestId := xs:unsignedLong($requestId) | ||
for $expression in dbg:breakpoints($requestId) | ||
return | ||
dbg:clear($requestId, $expression) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
xquery version "1.0-ml"; | ||
|
||
declare namespace server = "http://marklogic.com/xdmp/status/server"; | ||
|
||
import module namespace functx = "http://www.functx.com" | ||
at "/MarkLogic/functx/functx-1.0-nodoc-2007-01.xqy"; | ||
|
||
declare variable $serverId external; | ||
|
||
let $current-request := xdmp:request() | ||
let $a := json:array() | ||
let $_ := | ||
for $status in xdmp:server-status(xdmp:host(), (xdmp:server("TaskServer"), xs:unsignedLong($serverId)))/server:request-statuses/server:request-status[fn:not(server:request-id = $current-request)] | ||
let $o := map:new(( | ||
map:entry("server", xdmp:server-name($status/*:server-id)), | ||
map:entry("host", xdmp:host-name($status/*:host-id)), | ||
map:entry("modules", if ($status/*:modules = 0) then "FileSystem" else xdmp:database-name($status/*:modules)), | ||
map:entry("database", if ($status/*:database = 0) then "FileSystem" else xdmp:database-name($status/*:database)), | ||
for $item in $status/*[fn:not(self::*:server-id or self::*:host-id or self::*:modules or self::*:database)] | ||
return | ||
map:entry(functx:words-to-camel-case(fn:replace(fn:local-name($item), "-", " ")), $item/fn:data()) | ||
)) | ||
return | ||
json:array-push($a, $o) | ||
return | ||
xdmp:to-json($a) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import module namespace admin = "http://marklogic.com/xdmp/admin" | ||
at "/MarkLogic/admin.xqy"; | ||
|
||
declare variable $uri external; | ||
|
||
declare variable $serverId external; | ||
|
||
declare variable $ml-dir := xdmp:filesystem-filepath('.') || '/Modules'; | ||
|
||
let $server-id := xs:unsignedLong($serverId) | ||
let $config := admin:get-configuration() | ||
let $modules-db := admin:appserver-get-modules-database($config, $server-id) | ||
let $content-db := admin:appserver-get-database($config, $server-id) | ||
let $server-root := admin:appserver-get-root($config, $server-id) | ||
let $options := | ||
<options xmlns="xdmp:eval"> | ||
<database>{$content-db}</database> | ||
<modules>{$modules-db}</modules> | ||
</options> | ||
return | ||
if (fn:starts-with($uri, "/MarkLogic/")) then | ||
dbg:invoke($uri, (), $options) | ||
else | ||
dbg:invoke($uri, (), $options) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
declare variable $requestId external; | ||
|
||
dbg:attach(xs:unsignedLong($requestId)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.