mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
f1a20d748f
srcimbl gets changed on every iteration of the loop. The value that should be stored for the new imbalance of the source node is minsrcimbl. To help diagnose this, added some extra debug that can be left in. The extra debug changes the output of a couple of tests. Note that the resulting IP allocations in those tests is unchanged - only the debug output is changed. Also add some new tests that illustrates the bug. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Unit tests for the CTDB IP allocation algorithm(s). Test case filenames look like <algorithm>.NNN.sh, where <algorithm> indicates the IP allocation algorithm to use. These use the ctdb_takeover_test test program.