[sanlock] branch master updated: sanlock: fix
SANLK_ACQUIRE_ORPHAN_ONLY
by pagure@pagure.io
This is an automated email from the git hooks/post-receive script.
teigland pushed a commit to branch master
in repository sanlock.
The following commit(s) were added to refs/heads/master by this push:
new 3c2f8f6 sanlock: fix SANLK_ACQUIRE_ORPHAN_ONLY
3c2f8f6 is described below
commit 3c2f8f69f167701b127a95213345ae52aa6674da
Author: David Teigland <teigland(a)redhat.com>
AuthorDate: Tue Jun 25 13:21:33 2024 -0500
sanlock: fix SANLK_ACQUIRE_ORPHAN_ONLY
---
src/resource.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/resource.c b/src/resource.c
index 7e81cdb..98d1918 100644
--- a/src/resource.c
+++ b/src/resource.c
@@ -1820,7 +1820,8 @@ int acquire_token(struct task *task, struct token *token, uint32_t cmd_flags,
/* caller only wants to acquire an orphan */
- if (cmd_flags & only_orphan) {
+ if (only_orphan) {
+ log_debug("acquire_token no orphan found for only_orphan");
pthread_mutex_unlock(&resource_mutex);
return -ENOENT;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
1 day, 15 hours