*/
struct ip_reallocate_list {
struct ip_reallocate_list *next;
- struct rd_memdump_reply *rd;
+ struct srvid_request *rd;
};
struct ctdb_banning_state {
TALLOC_CTX *tmp_ctx = talloc_new(ctdb);
TDB_DATA *dump;
int ret;
- struct rd_memdump_reply *rd;
+ struct srvid_request *rd;
- if (data.dsize != sizeof(struct rd_memdump_reply)) {
+ if (data.dsize != sizeof(struct srvid_request)) {
DEBUG(DEBUG_ERR, (__location__ " Wrong size of return address.\n"));
talloc_free(tmp_ctx);
return;
}
- rd = (struct rd_memdump_reply *)data.dptr;
+ rd = (struct srvid_request *)data.dptr;
dump = talloc_zero(tmp_ctx, TDB_DATA);
if (dump == NULL) {
/*
- handler for ip reallocate, just add it to the list of callers and
+ handler for ip reallocate, just add it to the list of requests and
handle this later in the monitor_cluster loop so we do not recurse
- with other callers to takeover_run()
+ with other requests to takeover_run()
*/
static void ip_reallocate_handler(struct ctdb_context *ctdb, uint64_t srvid,
TDB_DATA data, void *private_data)
struct ctdb_recoverd *rec = talloc_get_type(private_data, struct ctdb_recoverd);
struct ip_reallocate_list *caller;
- if (data.dsize != sizeof(struct rd_memdump_reply)) {
+ if (data.dsize != sizeof(struct srvid_request)) {
DEBUG(DEBUG_ERR, (__location__ " Wrong size of return address.\n"));
return;
}
caller = talloc(rec->ip_reallocate_ctx, struct ip_reallocate_list);
CTDB_NO_MEMORY_FATAL(ctdb, caller);
- caller->rd = (struct rd_memdump_reply *)talloc_steal(caller, data.dptr);
+ caller->rd = (struct srvid_request *)talloc_steal(caller, data.dptr);
caller->next = rec->reallocate_callers;
rec->reallocate_callers = caller;
}
if (need_takeover_run) {
- struct takeover_run_reply rd;
+ struct srvid_request rd;
TDB_DATA data;
DEBUG(DEBUG_CRIT,("Trigger takeoverrun\n"));
{
int ret;
TDB_DATA data;
- struct takeover_run_reply rd;
+ struct srvid_request rd;
struct timeval tv;
/* Time ticks to enable timeouts to be processed */
rd.pnn = ctdb_get_pnn(ctdb);
rd.srvid = getpid();
+ rd.data = 0;
/* Register message port for reply from recovery master */
ctdb_client_set_message_handler(ctdb, rd.srvid, ip_reallocate_handler, NULL);
{
int ret;
TDB_DATA data;
- struct rd_memdump_reply rd;
+ struct srvid_request rd;
rd.pnn = ctdb_get_pnn(ctdb);
rd.srvid = getpid();