BaseXdb / basex

BaseX Main Repository.
http://basex.org
BSD 3-Clause "New" or "Revised" License
684 stars 265 forks source link

RESTXQ: %basex:lock #2295

Closed ChristianGruen closed 4 months ago

ChristianGruen commented 5 months ago

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

declare
  %updating
  %rest:path('/test')
  %basex: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.