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

CP-51835: Keep the HTTP /repository handler enabled #6072

Conversation

BengangY
Copy link
Contributor

@BengangY BengangY commented Oct 22, 2024

The HTTP /repository handler is guarded by a mutex exposing_pool_repo_mutex currently. Since now HTTP /repository is protected by session_id cookie, we can remove the mutex and keep the handler enabled all the time. Also, rename the mutex exposing_pool_repo_mutex to pool_update_ops_mutex.

@BengangY BengangY marked this pull request as ready for review October 23, 2024 01:11
ocaml/xapi/repository.ml Outdated Show resolved Hide resolved
@BengangY BengangY force-pushed the private/bengangy/CP-51835 branch from 46d40ff to 4f78fd5 Compare October 23, 2024 07:47
@BengangY BengangY force-pushed the private/bengangy/CP-51835 branch from 4f78fd5 to f54d6b6 Compare October 23, 2024 08:45
@minglumlu
Copy link
Member

It would be nice if the mutex name could be changed to something like "pool_update_ops_mutex".

The HTTP /repository handler is guarded by a mutex `exposing_pool_repo_mutex` currently.
Since now HTTP /repository is protected by `session_id` cookie, we can remove the mutex
from this handler and keep the handler enabled all the time.
Also, rename the mutex `exposing_pool_repo_mutex` to `pool_update_ops_mutex`.

Signed-off-by: Bengang Yuan <[email protected]>
@BengangY BengangY force-pushed the private/bengangy/CP-51835 branch from f54d6b6 to 654e7c1 Compare October 24, 2024 02:17
@BengangY
Copy link
Contributor Author

It would be nice if the mutex name could be changed to something like "pool_update_ops_mutex".

Updated.

@minglumlu minglumlu merged commit d449aae into xapi-project:feature/easier-pool-join Oct 24, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants