ctdb-daemon: Simplify listing event scripts using scandir

Enterprise / Samba - Amitay Isaacs [gmail.com] - 20 January 2014 23:41 UTC

Instead of using RB tree for sorting the script names (incorrectly since it's only using the leading numbers in the script name), use scandir with alphasort.

eee450f ctdb-daemon: Simplify listing event scripts using scandir
ctdb/server/eventscript.c | 134 ++++++++++++++-------------------------------
1 file changed, 40 insertions(+), 94 deletions(-)

Upstream: gitweb.samba.org


  • Share