diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2010-06-18 15:13:54 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2010-06-18 15:13:54 +0930 |
commit | f2a33c1b5131986c2f89344599bc6059edd259f3 (patch) | |
tree | 4d98c4f02a9431e0ae9cc14916af115f401ec8d6 /ctdb | |
parent | 841518d677fdca5cd0faca1316e00def23bef551 (diff) | |
download | samba-f2a33c1b5131986c2f89344599bc6059edd259f3.tar.gz |
libctdb: ctdb_service() never returns < 0
Found by ctdb-test.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(This used to be ctdb commit 0e8210f19edf2ae14154afb85d9b96951881f31f)
Diffstat (limited to 'ctdb')
-rw-r--r-- | ctdb/libctdb/sync.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/libctdb/sync.c b/ctdb/libctdb/sync.c index d60552af70b..43db2cf6b5a 100644 --- a/ctdb/libctdb/sync.c +++ b/ctdb/libctdb/sync.c @@ -45,7 +45,7 @@ static struct ctdb_request *synchronous(struct ctdb_connection *ctdb, DEBUG(ctdb, LOG_ERR, "ctdb_synchronous: poll failed"); return NULL; } - if (ctdb_service(ctdb, fds.revents) < 0) { + if (!ctdb_service(ctdb, fds.revents)) { /* It can have failed after it completed request. */ if (!*done) ctdb_cancel(ctdb, req); |