[SCM] Samba Shared Repository - branch master updated
Volker Lendecke
vlendec at samba.org
Fri Jun 24 20:40:03 UTC 2016
The branch, master has been updated
via 030fd72 s3-ctdb: Return an error when unexpected reply is received
from c49f9ab python/tests: add auth_pad test for the dcerpc raw_protocol test
https://git.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 030fd72b32162c556310e09731fcedcb59e8a044
Author: Amitay Isaacs <amitay at gmail.com>
Date: Fri Jun 24 19:22:02 2016 +1000
s3-ctdb: Return an error when unexpected reply is received
CTDB can send CTDB_REPLY_ERROR in case it encounters an error condition.
This is treated as successful migration as "ret" is not set.
Signed-off-by: Amitay Isaacs <amitay at gmail.com>
Reviewed-by: Volker Lendecke <vl at samba.org>
Autobuild-User(master): Volker Lendecke <vl at samba.org>
Autobuild-Date(master): Fri Jun 24 22:39:23 CEST 2016 on sn-devel-144
-----------------------------------------------------------------------
Summary of changes:
source3/lib/ctdbd_conn.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
Changeset truncated at 500 lines:
diff --git a/source3/lib/ctdbd_conn.c b/source3/lib/ctdbd_conn.c
index 8403b30..d073c72 100644
--- a/source3/lib/ctdbd_conn.c
+++ b/source3/lib/ctdbd_conn.c
@@ -763,7 +763,12 @@ int ctdbd_migrate(struct ctdbd_connection *conn, uint32_t db_id, TDB_DATA key)
}
if (hdr->operation != CTDB_REPLY_CALL) {
- DEBUG(0, ("received invalid reply\n"));
+ if (hdr->operation == CTDB_REPLY_ERROR) {
+ DBG_ERR("received error from ctdb\n");
+ } else {
+ DBG_ERR("received invalid reply\n");
+ }
+ ret = EIO;
goto fail;
}
--
Samba Shared Repository
More information about the samba-cvs
mailing list