Change this to return just 0 or -1. It isn't monitoring anything.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
nodemap->nodes[j].pnn));
ctdb_set_culprit(rec, nodemap->nodes[j].pnn);
talloc_free(mem_ctx);
- return MONITOR_FAILED;
+ return -1;
}
if (nodemap->nodes[j].flags != remote_nodemap->nodes[j].flags) {
/* We should tell our daemon about this so it
talloc_free(remote_nodemap);
}
talloc_free(mem_ctx);
- return MONITOR_OK;
+ return 0;
}
/* ensure our local copies of flags are right */
ret = update_local_flags(rec, nodemap);
- if (ret != MONITOR_OK) {
+ if (ret != 0) {
DEBUG(DEBUG_ERR,("Unable to update local flags\n"));
return;
}