* [PATCH 2/5] Allow max_retries and delay_time to be passed as arguments to compound()
@ 2025-04-10 21:17 bryan
0 siblings, 0 replies; only message in thread
From: bryan @ 2025-04-10 21:17 UTC (permalink / raw)
To: calum.mackay; +Cc: linux-nfs, Bryan Schmersal
From: Bryan Schmersal <bryan@schmersal.org>
Signed-off-by: Bryan Schmersal <bryan@schmersal.org>
---
nfs4.1/nfs4client.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/nfs4.1/nfs4client.py b/nfs4.1/nfs4client.py
index a180872..ba1e087 100644
--- a/nfs4.1/nfs4client.py
+++ b/nfs4.1/nfs4client.py
@@ -534,9 +534,9 @@ class SessionRecord(object):
res = self.remove_seq_op(res)
return res
- def compound(self, ops, **kwargs):
- max_retries = 10
- delay_time = 1
+ def compound(self, ops, **kwargs):[]
+ max_retries = kwargs.pop('max_retries', 10)
+ delay_time = kwargs.pop('delay_time', 1)
handle_state_errors = kwargs.pop("handle_state_errors", True)
saved_kwargs = kwargs
do_prepare = True
--
2.34.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2025-04-10 21:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-10 21:17 [PATCH 2/5] Allow max_retries and delay_time to be passed as arguments to compound() bryan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox