From: Alexander Aring <aahringo@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH dlm-tool 1/4] python: use force=2 as default
Date: Mon, 15 Aug 2022 15:51:45 -0400 [thread overview]
Message-ID: <20220815195148.2209805-1-aahringo@redhat.com> (raw)
To avoid -EBUSY cases we should use 2 as default for force when
releasing the lockspace.
---
python/bindings/dlm.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python/bindings/dlm.py b/python/bindings/dlm.py
index b77d374c..b592a3e4 100644
--- a/python/bindings/dlm.py
+++ b/python/bindings/dlm.py
@@ -129,7 +129,7 @@ class Lockspace:
if not self.__ls:
raise DLMError(-errno.ENOMEM)
- def release(self, force=0):
+ def release(self, force=2):
if not self.__ls:
return
--
2.31.1
next reply other threads:[~2022-08-15 19:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-15 19:51 Alexander Aring [this message]
2022-08-15 19:51 ` [Cluster-devel] [PATCH dlm-tool 2/4] libdlm: force timeout parameter to zero Alexander Aring
2022-08-15 19:51 ` [Cluster-devel] [PATCH dlm-tool 3/4] libdlm: force unset the DLM_LSFL_TIMEWARN flag Alexander Aring
2022-08-15 19:51 ` [Cluster-devel] [PATCH dlm-tool 4/4] controld: remove timewarn handling Alexander Aring
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220815195148.2209805-1-aahringo@redhat.com \
--to=aahringo@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).