ctdb-ipalloc: Optimise check to see if IPs can be hosted
authorMartin Schwenke <martin@meltin.net>
Mon, 12 Sep 2016 05:51:58 +0000 (15:51 +1000)
committerMartin Schwenke <martins@samba.org>
Wed, 14 Sep 2016 06:39:29 +0000 (08:39 +0200)
commitfed251726facf30225a131d43658975d5f4befb5
treea6c52e289ce68d694fdb2e4c2fdca7ade0e23694
parentdfc3b8855d0a740d4f5218fcda4b3f64d4d6cd17
ctdb-ipalloc: Optimise check to see if IPs can be hosted

Add an early return if there are no known IP addresses.

Also add an extra comment for clarification.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12254

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/server/ipalloc.c