mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
update "ctdb pnn" to use the new return value for _recv() where
bool false means failure and true means success. (This used to be ctdb commit 8fec60cb92d26886d853c918b8bc7931fec46469)
This commit is contained in:
parent
2e2211575a
commit
6e0d612750
@ -384,10 +384,10 @@ static int control_uptime(struct ctdb_context *ctdb, int argc, const char **argv
|
||||
static int control_pnn(struct ctdb_context *ctdb, int argc, const char **argv)
|
||||
{
|
||||
uint32_t mypnn;
|
||||
int ret;
|
||||
bool ret;
|
||||
|
||||
ret = ctdb_getpnn(ctdb_connection, options.pnn, &mypnn);
|
||||
if (ret != 0) {
|
||||
if (!ret) {
|
||||
DEBUG(DEBUG_ERR, ("Unable to get pnn from node."));
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user