[PATCH] Fix CTDB statistics hop count calculations

Martin Schwenke martin at meltin.net
Mon Dec 17 09:43:26 UTC 2018

We have always assumed that the hop count buckets used in CTDB's
statistics represent powers of 2 hops.  However, the code shifts 2
places to the right... so divides by 4,  Given 16 buckets, the top
bucket contains counts higher than 268435456, which is a little

So, divide by 2 instead.

While, the documentation correctly assumed powers of 2, it only had 10
buckets documented, so fix this.

A 2nd patch improves nearby line wrapping in the documentation for lock

Please review and maybe push...

peace & happiness,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ctdb.patch
Type: text/x-patch
Size: 4147 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20181217/cd40a355/ctdb.bin>

More information about the samba-technical mailing list