Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RESTXQ: %basex:lock #2295

Closed
ChristianGruen opened this issue Apr 22, 2024 · 0 comments
Closed

RESTXQ: %basex:lock #2295

ChristianGruen opened this issue Apr 22, 2024 · 0 comments
Labels

Comments

@ChristianGruen
Copy link
Member

ChristianGruen commented Apr 22, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant