[PATCH] CTDB - "ctdb scriptstatus" should not count disabled scripts

Martin Schwenke martin at meltin.net
Fri May 16 02:43:41 MDT 2014


script_status->num_scripts is used as the count in this message:

  "%d scripts were executed last %s cycle\n"

However, script_status->num_scripts includes disabled scripts, which
are never actually executed.

Instead, count the number of scripts that aren't disabled and make the
message print that.

Please review and push if OK.

This patch is 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-tools-ctdb-scriptstatus-should-not-count-disabl.patch
Type: text/x-patch
Size: 1360 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20140516/b3c109a7/attachment.bin>


More information about the samba-technical mailing list