The only reason why this could fail is a severe ctdb communications
problem. The normal way to deal with this is ctdb_fatal. This avoids a
confusing panic in get_share_mode_lock when ctdb is shutdown while this
call happens.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
NTSTATUS status;
struct ctdb_vnn_list *vnns = NULL;
unsigned num_vnns;
- bool result = false;
if (!ctdb_collect_vnns(talloc_tos(), pids, num_pids,
&vnns, &num_vnns)) {
num_received += 1;
}
- result = true;
-fail:
TALLOC_FREE(vnns);
- return result;
+ return true;
+fail:
+ cluster_fatal("serverids_exist failed");
+ return false;
#endif /* HAVE_CTDB_CONTROL_CHECK_SRVIDS_DECL */
}