1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00
samba-mirror/ctdb/tests/UNIT
Martin Schwenke 8ba8fef8ac ctdb-tests: Correctly handle adding a deleted node at the end
The current fake_ctdbd code for reloading the nodes file overruns the
allocation when adding a deleted node at the end.  This is a very
unlikely case, but it might as well work.

Check the size of the internal node map when marking a node deleted.
Also, update the code that adds a node to correctly set the deleted
flag when appropriate.

The included test case tests this.

Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Guenther Deschner <gd@samba.org>

Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Wed Jul 17 00:06:53 UTC 2024 on atb-devel-224
2024-07-17 00:06:53 +00:00
..
cunit ctdb: Remove common/line.[ch] 2024-04-16 23:51:45 +00:00
eventd ctdb-tools: Fix CID 1539212 - signed/unsigned issue 2023-08-07 08:43:39 +00:00
eventscripts ctdb-failover: Split statd_callout add-client/del-client 2024-06-25 04:24:57 +00:00
onnode ctdb-tests: Prefix remaining environment variables with CTDB_ 2019-10-22 19:39:41 +00:00
shellcheck ctdb-failover: Split statd_callout add-client/del-client 2024-06-25 04:24:57 +00:00
takeover ctdb: Add "home_nodes" file to deterministic IP allocation 2023-10-10 14:17:19 +00:00
takeover_helper ctdb-takeover: Use CTDB_CONTROL_START_IPREALLOCATE 2024-03-06 06:05:38 +00:00
tool ctdb-tests: Correctly handle adding a deleted node at the end 2024-07-17 00:06:53 +00:00