summaryrefslogtreecommitdiff
path: root/ctdb/tests/src/cluster_wait.c
AgeCommit message (Collapse)AuthorFilesLines
2019-07-05ctdb-tests: Fix signed/unsigned comparisons by declaring as unsignedMartin Schwenke1-3/+3
Change declarations of variable and parameters, usually loop variables and limits, from int to unsigned int, size_t or uint32_t. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2018-05-24ctdb: Fix CID 1435740 Unchecked return valueVolker Lendecke1-1/+8
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2017-10-05ctdb-tests: Send broadcast to connected nodes, not configured nodesAmitay Isaacs1-1/+1
https://bugzilla.samba.org/show_bug.cgi?id=13056 Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
2017-01-06ctdb-tests: Do not attempt to unregister the join handler multiple timesAmitay Isaacs1-16/+24
MSG_ID_SYNC is broadcast to each node when a MSG_ID_JOIN has been received from all nodes. After MSG_ID_SYNC is successfully broadcast, the join handler is unregistered. However, if another MSG_ID_JOIN is received before the join handler is unregistered then MSG_ID_SYNC is re-broadcast. This results in multiple attempts to unregister the join handler. Once all MSG_ID_JOIN messages are received, unregister the join handler to ignore any extra MSG_ID_JOIN messages. Also, make sure that while join handler is being unregistered, MSG_ID_JOIN messages are ignored. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12500 Identified-by: Martin Schwenke <martin@meltin.net> Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net> Autobuild-User(master): Martin Schwenke <martins@samba.org> Autobuild-Date(master): Fri Jan 6 12:27:23 CET 2017 on sn-devel-144
2016-07-22ctdb-tests: Common code to wait for synchronization across clusterAmitay Isaacs1-0/+331
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>