git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
061315c
)
ctdb-tests: Terminate event loop if lock is no longer held
author
Martin Schwenke
<martin@meltin.net>
Mon, 28 Feb 2022 05:11:18 +0000
(16:11 +1100)
committer
Martin Schwenke
<martins@samba.org>
Thu, 28 Jul 2022 10:09:34 +0000
(10:09 +0000)
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tests/src/cluster_mutex_test.c
patch
|
blob
|
history
diff --git
a/ctdb/tests/src/cluster_mutex_test.c
b/ctdb/tests/src/cluster_mutex_test.c
index 1252b688d941aec148afa0e2388286e975b69e6a..f8f2f7aa7ef5a65a87ecd31ee4b3b3d4cf537f1b 100644
(file)
--- a/
ctdb/tests/src/cluster_mutex_test.c
+++ b/
ctdb/tests/src/cluster_mutex_test.c
@@
-242,7
+242,7
@@
static void do_lock_wait_time(struct do_lock_context *dl,
&done);
assert(tt != NULL);
- while (!
done
) {
+ while (!
done && dl->mh != NULL
) {
tevent_loop_once(dl->ctdb->ev);
}
}