diff options
author | Martin Schwenke <martin@meltin.net> | 2012-08-20 14:30:35 +1000 |
---|---|---|
committer | Amitay Isaacs <amitay@gmail.com> | 2012-10-02 17:37:52 +1000 |
commit | cc5f37f293b4308d8cda37085ee50be516ec6648 (patch) | |
tree | cc7161b338d5d49cd9a82dc5f9822850e801ee77 | |
parent | 28345d83c0dd1ce89b156a9953e552e3411c8cfd (diff) | |
download | samba-cc5f37f293b4308d8cda37085ee50be516ec6648.tar.gz samba-cc5f37f293b4308d8cda37085ee50be516ec6648.tar.xz samba-cc5f37f293b4308d8cda37085ee50be516ec6648.zip |
libctdb: Add comments to effect that some controls return result in status
These controls include:
CTDB_CONTROL_GET_RECMODE
CTDB_CONTROL_GET_RECMASTER
CTDB_CONTROL_GET_PID
CTDB_CONTROL_GET_PNN
CTDB_CONTROL_PING
CTDB_CONTROL_GET_DB_PRIORITY
In these cases the data field is empty.
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit b89e959904d7d1b0e5525abd7789f5101537a46a)
-rw-r--r-- | ctdb/libctdb/control.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ctdb/libctdb/control.c b/ctdb/libctdb/control.c index 176c48c896..8d14cc86de 100644 --- a/ctdb/libctdb/control.c +++ b/ctdb/libctdb/control.c @@ -48,6 +48,7 @@ bool ctdb_getrecmaster_recv(struct ctdb_connection *ctdb, DEBUG(ctdb, LOG_ERR, "ctdb_getrecmaster_recv: status -1"); return false; } + /* Note: data is stashed in status - see ctdb_control_dispatch() */ *recmaster = reply->status; return true; } @@ -75,6 +76,7 @@ bool ctdb_getrecmode_recv(struct ctdb_connection *ctdb, DEBUG(ctdb, LOG_ERR, "ctdb_getrecmode_recv: status -1"); return false; } + /* Note: data is stashed in status - see ctdb_control_dispatch() */ *recmode = reply->status; return true; } @@ -102,6 +104,7 @@ bool ctdb_getpnn_recv(struct ctdb_connection *ctdb, DEBUG(ctdb, LOG_ERR, "ctdb_getpnn_recv: status -1"); return false; } + /* Note: data is stashed in status - see ctdb_control_dispatch() */ *pnn = reply->status; return true; } |