[PATCH] ctdb-recoverd: Fix a bug in the LCP2 rebalancing code

Martin Schwenke martin at meltin.net
Wed Feb 12 01:33:21 MST 2014


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 at meltin.net>
---

Please review and push if OK.

I've added this to the other patches that are awaiting review in my
ctdb branch:

  http://git.samba.org/?p=martins/samba.git;a=shortlog;h=refs/heads/ctdb

peace & happiness,
martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ctdb-recoverd-Fix-a-bug-in-the-LCP2-rebalancing-code.patch
Type: text/x-patch
Size: 26966 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20140212/4e0316eb/attachment.bin>


More information about the samba-technical mailing list