git.samba.org
/
ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70f6ed2
)
libctdb: ctdb_service() never returns < 0
author
Rusty Russell
<rusty@rustcorp.com.au>
Fri, 18 Jun 2010 05:43:54 +0000
(15:13 +0930)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Fri, 18 Jun 2010 05:43:54 +0000
(15:13 +0930)
Found by ctdb-test.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
libctdb/sync.c
patch
|
blob
|
history
diff --git
a/libctdb/sync.c
b/libctdb/sync.c
index d60552af70bcafcdd131e563239fdb9734e0760c..43db2cf6b5a05ffaa7d43274ec4caab5d8401778 100644
(file)
--- a/
libctdb/sync.c
+++ b/
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);