basex icon indicating copy to clipboard operation
basex copied to clipboard

RESTXQ: %basex:lock

Open ChristianGruen opened this issue 1 year ago • 0 comments

When %basex:lock is assigned to an updating RESTXQ endpoint, the corresponding function should only be invoked once in parallel:

declare
  %rest:path('/test')
  %base:lock('LOCK')
function local:sleep() {
  prof:sleep(10000)
};

Currently (or at least in BaseX 10.7), %basex:inline(0) needs to be added to enforce this behavior.

ChristianGruen avatar Apr 22 '24 18:04 ChristianGruen