mirror of
https://github.com/samba-team/samba.git
synced 2025-01-03 01:18:10 +03:00
ctdb-protocol: Drop protocol client functions for recmaster controls
Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
parent
cda673ff6d
commit
193b624d26
@ -270,14 +270,6 @@ void ctdb_req_control_get_pid(struct ctdb_req_control *request);
|
|||||||
int ctdb_reply_control_get_pid(struct ctdb_reply_control *reply,
|
int ctdb_reply_control_get_pid(struct ctdb_reply_control *reply,
|
||||||
pid_t *pid);
|
pid_t *pid);
|
||||||
|
|
||||||
void ctdb_req_control_get_recmaster(struct ctdb_req_control *request);
|
|
||||||
int ctdb_reply_control_get_recmaster(struct ctdb_reply_control *reply,
|
|
||||||
uint32_t *recmaster);
|
|
||||||
|
|
||||||
void ctdb_req_control_set_recmaster(struct ctdb_req_control *request,
|
|
||||||
int recmaster);
|
|
||||||
int ctdb_reply_control_set_recmaster(struct ctdb_reply_control *reply);
|
|
||||||
|
|
||||||
void ctdb_req_control_freeze(struct ctdb_req_control *request,
|
void ctdb_req_control_freeze(struct ctdb_req_control *request,
|
||||||
uint32_t priority);
|
uint32_t priority);
|
||||||
int ctdb_reply_control_freeze(struct ctdb_reply_control *reply);
|
int ctdb_reply_control_freeze(struct ctdb_reply_control *reply);
|
||||||
|
@ -557,52 +557,6 @@ int ctdb_reply_control_get_pid(struct ctdb_reply_control *reply,
|
|||||||
return reply->status;
|
return reply->status;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* CTDB_CONTROL_GET_RECMASTER */
|
|
||||||
|
|
||||||
void ctdb_req_control_get_recmaster(struct ctdb_req_control *request)
|
|
||||||
{
|
|
||||||
request->opcode = CTDB_CONTROL_GET_RECMASTER;
|
|
||||||
request->pad = 0;
|
|
||||||
request->srvid = 0;
|
|
||||||
request->client_id = 0;
|
|
||||||
request->flags = 0;
|
|
||||||
|
|
||||||
request->rdata.opcode = CTDB_CONTROL_GET_RECMASTER;
|
|
||||||
}
|
|
||||||
|
|
||||||
int ctdb_reply_control_get_recmaster(struct ctdb_reply_control *reply,
|
|
||||||
uint32_t *recmaster)
|
|
||||||
{
|
|
||||||
if (reply->rdata.opcode != CTDB_CONTROL_GET_RECMASTER) {
|
|
||||||
return EPROTO;
|
|
||||||
}
|
|
||||||
|
|
||||||
*recmaster = reply->status;
|
|
||||||
reply->status = 0;
|
|
||||||
|
|
||||||
return reply->status;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* CTDB_CONTROL_SET_RECMASTER */
|
|
||||||
|
|
||||||
void ctdb_req_control_set_recmaster(struct ctdb_req_control *request,
|
|
||||||
int recmaster)
|
|
||||||
{
|
|
||||||
request->opcode = CTDB_CONTROL_SET_RECMASTER;
|
|
||||||
request->pad = 0;
|
|
||||||
request->srvid = 0;
|
|
||||||
request->client_id = 0;
|
|
||||||
request->flags = 0;
|
|
||||||
|
|
||||||
request->rdata.opcode = CTDB_CONTROL_SET_RECMASTER;
|
|
||||||
request->rdata.data.recmaster = recmaster;
|
|
||||||
}
|
|
||||||
|
|
||||||
int ctdb_reply_control_set_recmaster(struct ctdb_reply_control *reply)
|
|
||||||
{
|
|
||||||
return ctdb_reply_control_generic(reply, CTDB_CONTROL_SET_RECMASTER);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* CTDB_CONTROL_FREEZE */
|
/* CTDB_CONTROL_FREEZE */
|
||||||
|
|
||||||
void ctdb_req_control_freeze(struct ctdb_req_control *request,
|
void ctdb_req_control_freeze(struct ctdb_req_control *request,
|
||||||
|
Loading…
Reference in New Issue
Block a user