2 CTDB client code - sync api
4 Copyright (C) Amitay Isaacs 2017
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, see <http://www.gnu.org/licenses/>.
20 #ifndef __CTDB_CLIENT_SYNC_H__
21 #define __CTDB_CLIENT_SYNC_H__
26 /* from client/client_control_sync.c */
28 int ctdb_ctrl_process_exists(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
29 struct ctdb_client_context
*client
,
30 int destnode
, struct timeval timeout
,
31 pid_t pid
, int *status
);
33 int ctdb_ctrl_statistics(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
34 struct ctdb_client_context
*client
,
35 int destnode
, struct timeval timeout
,
36 struct ctdb_statistics
**stats
);
38 int ctdb_ctrl_ping(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
39 struct ctdb_client_context
*client
,
40 int destnode
, struct timeval timeout
,
43 int ctdb_ctrl_getdbpath(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
44 struct ctdb_client_context
*client
,
45 int destnode
, struct timeval timeout
,
46 uint32_t db_id
, const char **db_path
);
48 int ctdb_ctrl_getvnnmap(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
49 struct ctdb_client_context
*client
,
50 int destnode
, struct timeval timeout
,
51 struct ctdb_vnn_map
**vnnmap
);
53 int ctdb_ctrl_getdebug(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
54 struct ctdb_client_context
*client
,
55 int destnode
, struct timeval timeout
,
58 int ctdb_ctrl_setdebug(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
59 struct ctdb_client_context
*client
,
60 int destnode
, struct timeval timeout
,
63 int ctdb_ctrl_get_dbmap(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
64 struct ctdb_client_context
*client
,
65 int destnode
, struct timeval timeout
,
66 struct ctdb_dbid_map
**dbmap
);
68 int ctdb_ctrl_pull_db(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
69 struct ctdb_client_context
*client
, int destnode
,
70 struct timeval timeout
, struct ctdb_pulldb
*pulldb
,
71 struct ctdb_rec_buffer
**recbuf
);
73 int ctdb_ctrl_push_db(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
74 struct ctdb_client_context
*client
, int destnode
,
75 struct timeval timeout
, struct ctdb_rec_buffer
*recbuf
);
77 int ctdb_ctrl_get_recmode(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
78 struct ctdb_client_context
*client
,
79 int destnode
, struct timeval timeout
,
82 int ctdb_ctrl_set_recmode(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
83 struct ctdb_client_context
*client
,
84 int destnode
, struct timeval timeout
,
87 int ctdb_ctrl_statistics_reset(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
88 struct ctdb_client_context
*client
,
89 int destnode
, struct timeval timeout
);
91 int ctdb_ctrl_db_attach(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
92 struct ctdb_client_context
*client
,
93 int destnode
, struct timeval timeout
,
94 const char *db_name
, uint32_t *db_id
);
96 int ctdb_ctrl_traverse_start(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
97 struct ctdb_client_context
*client
,
98 int destnode
, struct timeval timeout
,
99 struct ctdb_traverse_start
*traverse
);
101 int ctdb_ctrl_register_srvid(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
102 struct ctdb_client_context
*client
,
103 int destnode
, struct timeval timeout
,
106 int ctdb_ctrl_deregister_srvid(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
107 struct ctdb_client_context
*client
,
108 int destnode
, struct timeval timeout
,
111 int ctdb_ctrl_get_dbname(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
112 struct ctdb_client_context
*client
,
113 int destnode
, struct timeval timeout
,
114 uint32_t db_id
, const char **db_name
);
116 int ctdb_ctrl_enable_seqnum(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
117 struct ctdb_client_context
*client
,
118 int destnode
, struct timeval timeout
,
121 int ctdb_ctrl_update_seqnum(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
122 struct ctdb_client_context
*client
,
123 int destnode
, struct timeval timeout
,
126 int ctdb_ctrl_dump_memory(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
127 struct ctdb_client_context
*client
,
128 int destnode
, struct timeval timeout
,
129 const char **mem_str
);
131 int ctdb_ctrl_get_pid(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
132 struct ctdb_client_context
*client
,
133 int destnode
, struct timeval timeout
,
136 int ctdb_ctrl_get_recmaster(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
137 struct ctdb_client_context
*client
,
138 int destnode
, struct timeval timeout
,
139 uint32_t *recmaster
);
141 int ctdb_ctrl_set_recmaster(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
142 struct ctdb_client_context
*client
,
143 int destnode
, struct timeval timeout
,
146 int ctdb_ctrl_freeze(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
147 struct ctdb_client_context
*client
,
148 int destnode
, struct timeval timeout
,
151 int ctdb_ctrl_get_pnn(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
152 struct ctdb_client_context
*client
,
153 int destnode
, struct timeval timeout
,
156 int ctdb_ctrl_shutdown(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
157 struct ctdb_client_context
*client
,
158 int destnode
, struct timeval timeout
);
160 int ctdb_ctrl_get_monmode(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
161 struct ctdb_client_context
*client
,
162 int destnode
, struct timeval timeout
,
165 int ctdb_ctrl_tcp_add(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
166 struct ctdb_client_context
*client
,
167 int destnode
, struct timeval timeout
,
168 struct ctdb_connection
*conn
);
170 int ctdb_ctrl_tcp_remove(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
171 struct ctdb_client_context
*client
,
172 int destnode
, struct timeval timeout
,
173 struct ctdb_connection
*conn
);
175 int ctdb_ctrl_set_tunable(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
176 struct ctdb_client_context
*client
,
177 int destnode
, struct timeval timeout
,
178 struct ctdb_tunable
*tunable
);
180 int ctdb_ctrl_get_tunable(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
181 struct ctdb_client_context
*client
,
182 int destnode
, struct timeval timeout
,
183 const char *var
, uint32_t *value
);
185 int ctdb_ctrl_list_tunables(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
186 struct ctdb_client_context
*client
,
187 int destnode
, struct timeval timeout
,
188 struct ctdb_var_list
**var_list
);
190 int ctdb_ctrl_modify_flags(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
191 struct ctdb_client_context
*client
,
192 int destnode
, struct timeval timeout
,
193 uint32_t pnn
, uint32_t old_flags
,
196 int ctdb_ctrl_get_all_tunables(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
197 struct ctdb_client_context
*client
,
198 int destnode
, struct timeval timeout
,
199 struct ctdb_tunable_list
**tun_list
);
201 int ctdb_ctrl_get_tcp_tickle_list(TALLOC_CTX
*mem_ctx
,
202 struct tevent_context
*ev
,
203 struct ctdb_client_context
*client
,
204 int destnode
, struct timeval timeout
,
205 ctdb_sock_addr
*addr
,
206 struct ctdb_tickle_list
**tickles
);
208 int ctdb_ctrl_set_tcp_tickle_list(TALLOC_CTX
*mem_ctx
,
209 struct tevent_context
*ev
,
210 struct ctdb_client_context
*client
,
211 int destnode
, struct timeval timeout
,
212 struct ctdb_tickle_list
*tickles
);
214 int ctdb_ctrl_db_attach_persistent(TALLOC_CTX
*mem_ctx
,
215 struct tevent_context
*ev
,
216 struct ctdb_client_context
*client
,
217 int destnode
, struct timeval timeout
,
218 const char *db_name
, uint32_t *db_id
);
220 int ctdb_ctrl_send_gratuitous_arp(TALLOC_CTX
*mem_ctx
,
221 struct tevent_context
*ev
,
222 struct ctdb_client_context
*client
,
223 int destnode
, struct timeval timeout
,
224 struct ctdb_addr_info
*addr_info
);
226 int ctdb_ctrl_wipe_database(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
227 struct ctdb_client_context
*client
,
228 int destnode
, struct timeval timeout
,
229 uint32_t db_id
, uint32_t tid
);
231 int ctdb_ctrl_uptime(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
232 struct ctdb_client_context
*client
,
233 int destnode
, struct timeval timeout
,
234 struct ctdb_uptime
**uptime
);
236 int ctdb_ctrl_start_recovery(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
237 struct ctdb_client_context
*client
,
238 int destnode
, struct timeval timeout
);
240 int ctdb_ctrl_end_recovery(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
241 struct ctdb_client_context
*client
,
242 int destnode
, struct timeval timeout
);
244 int ctdb_ctrl_reload_nodes_file(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
245 struct ctdb_client_context
*client
,
246 int destnode
, struct timeval timeout
);
248 int ctdb_ctrl_enable_monitor(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
249 struct ctdb_client_context
*client
,
250 int destnode
, struct timeval timeout
);
252 int ctdb_ctrl_disable_monitor(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
253 struct ctdb_client_context
*client
,
254 int destnode
, struct timeval timeout
);
256 int ctdb_ctrl_add_public_ip(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
257 struct ctdb_client_context
*client
,
258 int destnode
, struct timeval timeout
,
259 struct ctdb_addr_info
*addr_info
);
261 int ctdb_ctrl_del_public_ip(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
262 struct ctdb_client_context
*client
,
263 int destnode
, struct timeval timeout
,
264 struct ctdb_addr_info
*addr_info
);
266 int ctdb_ctrl_get_capabilities(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
267 struct ctdb_client_context
*client
,
268 int destnode
, struct timeval timeout
,
271 int ctdb_ctrl_release_ip(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
272 struct ctdb_client_context
*client
,
273 int destnode
, struct timeval timeout
,
274 struct ctdb_public_ip
*pubip
);
276 int ctdb_ctrl_takeover_ip(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
277 struct ctdb_client_context
*client
,
278 int destnode
, struct timeval timeout
,
279 struct ctdb_public_ip
*pubip
);
281 int ctdb_ctrl_get_public_ips(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
282 struct ctdb_client_context
*client
,
283 int destnode
, struct timeval timeout
,
285 struct ctdb_public_ip_list
**pubip_list
);
287 int ctdb_ctrl_get_nodemap(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
288 struct ctdb_client_context
*client
,
289 int destnode
, struct timeval timeout
,
290 struct ctdb_node_map
**nodemap
);
292 int ctdb_ctrl_traverse_kill(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
293 struct ctdb_client_context
*client
,
294 int destnode
, struct timeval timeout
,
295 struct ctdb_traverse_start
*traverse
);
297 int ctdb_ctrl_get_reclock_file(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
298 struct ctdb_client_context
*client
,
299 int destnode
, struct timeval timeout
,
300 const char **reclock_file
);
302 int ctdb_ctrl_stop_node(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
303 struct ctdb_client_context
*client
,
304 int destnode
, struct timeval timeout
);
306 int ctdb_ctrl_continue_node(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
307 struct ctdb_client_context
*client
,
308 int destnode
, struct timeval timeout
);
310 int ctdb_ctrl_set_lmasterrole(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
311 struct ctdb_client_context
*client
,
312 int destnode
, struct timeval timeout
,
313 uint32_t lmaster_role
);
315 int ctdb_ctrl_set_recmasterrole(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
316 struct ctdb_client_context
*client
,
317 int destnode
, struct timeval timeout
,
318 uint32_t recmaster_role
);
320 int ctdb_ctrl_set_ban_state(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
321 struct ctdb_client_context
*client
,
322 int destnode
, struct timeval timeout
,
323 struct ctdb_ban_state
*ban_state
);
325 int ctdb_ctrl_get_ban_state(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
326 struct ctdb_client_context
*client
,
327 int destnode
, struct timeval timeout
,
328 struct ctdb_ban_state
**ban_state
);
330 int ctdb_ctrl_register_notify(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
331 struct ctdb_client_context
*client
,
332 int destnode
, struct timeval timeout
,
333 struct ctdb_notify_data
*notify
);
335 int ctdb_ctrl_deregister_notify(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
336 struct ctdb_client_context
*client
,
337 int destnode
, struct timeval timeout
,
340 int ctdb_ctrl_trans3_commit(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
341 struct ctdb_client_context
*client
,
342 int destnode
, struct timeval timeout
,
343 struct ctdb_rec_buffer
*recbuf
);
345 int ctdb_ctrl_get_db_seqnum(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
346 struct ctdb_client_context
*client
,
347 int destnode
, struct timeval timeout
,
348 uint32_t db_id
, uint64_t *seqnum
);
350 int ctdb_ctrl_db_set_healthy(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
351 struct ctdb_client_context
*client
,
352 int destnode
, struct timeval timeout
,
355 int ctdb_ctrl_db_get_health(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
356 struct ctdb_client_context
*client
,
357 int destnode
, struct timeval timeout
,
358 uint32_t db_id
, const char **reason
);
360 int ctdb_ctrl_get_public_ip_info(TALLOC_CTX
*mem_ctx
,
361 struct tevent_context
*ev
,
362 struct ctdb_client_context
*client
,
363 int destnode
, struct timeval timeout
,
364 ctdb_sock_addr
*addr
,
365 struct ctdb_public_ip_info
**ipinfo
);
367 int ctdb_ctrl_get_ifaces(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
368 struct ctdb_client_context
*client
,
369 int destnode
, struct timeval timeout
,
370 struct ctdb_iface_list
**iface_list
);
372 int ctdb_ctrl_set_iface_link_state(TALLOC_CTX
*mem_ctx
,
373 struct tevent_context
*ev
,
374 struct ctdb_client_context
*client
,
375 int destnode
, struct timeval timeout
,
376 struct ctdb_iface
*iface
);
378 int ctdb_ctrl_tcp_add_delayed_update(TALLOC_CTX
*mem_ctx
,
379 struct tevent_context
*ev
,
380 struct ctdb_client_context
*client
,
381 int destnode
, struct timeval timeout
,
382 struct ctdb_connection
*conn
);
384 int ctdb_ctrl_get_stat_history(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
385 struct ctdb_client_context
*client
,
386 int destnode
, struct timeval timeout
,
387 struct ctdb_statistics_list
**stats_list
);
389 int ctdb_ctrl_schedule_for_deletion(TALLOC_CTX
*mem_ctx
,
390 struct tevent_context
*ev
,
391 struct ctdb_client_context
*client
,
392 int destnode
, struct timeval timeout
,
393 struct ctdb_key_data
*key
);
395 int ctdb_ctrl_set_db_readonly(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
396 struct ctdb_client_context
*client
,
397 int destnode
, struct timeval timeout
,
400 int ctdb_ctrl_check_srvids(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
401 struct ctdb_client_context
*client
,
402 int destnode
, struct timeval timeout
,
403 uint64_t *srvid
, int count
, uint8_t **result
);
405 int ctdb_ctrl_traverse_start_ext(TALLOC_CTX
*mem_ctx
,
406 struct tevent_context
*ev
,
407 struct ctdb_client_context
*client
,
408 int destnode
, struct timeval timeout
,
409 struct ctdb_traverse_start_ext
*traverse
);
411 int ctdb_ctrl_get_db_statistics(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
412 struct ctdb_client_context
*client
,
413 int destnode
, struct timeval timeout
,
415 struct ctdb_db_statistics
**dbstats
);
417 int ctdb_ctrl_set_db_sticky(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
418 struct ctdb_client_context
*client
,
419 int destnode
, struct timeval timeout
,
422 int ctdb_ctrl_reload_public_ips(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
423 struct ctdb_client_context
*client
,
424 int destnode
, struct timeval timeout
);
426 int ctdb_ctrl_ipreallocated(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
427 struct ctdb_client_context
*client
,
428 int destnode
, struct timeval timeout
);
430 int ctdb_ctrl_get_runstate(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
431 struct ctdb_client_context
*client
,
432 int destnode
, struct timeval timeout
,
433 enum ctdb_runstate
*runstate
);
435 int ctdb_ctrl_db_detach(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
436 struct ctdb_client_context
*client
,
437 int destnode
, struct timeval timeout
,
440 int ctdb_ctrl_get_nodes_file(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
441 struct ctdb_client_context
*client
,
442 int destnode
, struct timeval timeout
,
443 struct ctdb_node_map
**nodemap
);
445 int ctdb_ctrl_db_freeze(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
446 struct ctdb_client_context
*client
,
447 int destnode
, struct timeval timeout
, uint32_t db_id
);
449 int ctdb_ctrl_db_thaw(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
450 struct ctdb_client_context
*client
,
451 int destnode
, struct timeval timeout
, uint32_t db_id
);
453 int ctdb_ctrl_db_transaction_start(TALLOC_CTX
*mem_ctx
,
454 struct tevent_context
*ev
,
455 struct ctdb_client_context
*client
,
456 int destnode
, struct timeval timeout
,
457 struct ctdb_transdb
*transdb
);
459 int ctdb_ctrl_db_transaction_commit(TALLOC_CTX
*mem_ctx
,
460 struct tevent_context
*ev
,
461 struct ctdb_client_context
*client
,
462 int destnode
, struct timeval timeout
,
463 struct ctdb_transdb
*transdb
);
465 int ctdb_ctrl_db_transaction_cancel(TALLOC_CTX
*mem_ctx
,
466 struct tevent_context
*ev
,
467 struct ctdb_client_context
*client
,
468 int destnode
, struct timeval timeout
,
471 int ctdb_ctrl_db_pull(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
472 struct ctdb_client_context
*client
,
473 int destnode
, struct timeval timeout
,
474 struct ctdb_pulldb_ext
*pulldb
, uint32_t *num_records
);
476 int ctdb_ctrl_db_push_start(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
477 struct ctdb_client_context
*client
,
478 int destnode
, struct timeval timeout
,
479 struct ctdb_pulldb_ext
*pulldb
);
481 int ctdb_ctrl_db_push_confirm(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
482 struct ctdb_client_context
*client
,
483 int destnode
, struct timeval timeout
,
484 uint32_t db_id
, uint32_t *num_records
);
486 int ctdb_ctrl_db_open_flags(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
487 struct ctdb_client_context
*client
,
488 int destnode
, struct timeval timeout
,
489 uint32_t db_id
, int *tdb_flags
);
491 int ctdb_ctrl_db_attach_replicated(TALLOC_CTX
*mem_ctx
,
492 struct tevent_context
*ev
,
493 struct ctdb_client_context
*client
,
494 int destnode
, struct timeval timeout
,
495 const char *db_name
, uint32_t *db_id
);
497 /* from client/client_message_sync.c */
499 int ctdb_message_recd_update_ip(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
500 struct ctdb_client_context
*client
,
501 int destnode
, struct ctdb_public_ip
*pubip
);
503 int ctdb_message_mem_dump(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
504 struct ctdb_client_context
*client
,
505 int destnode
, struct ctdb_srvid_message
*msg
);
507 int ctdb_message_reload_nodes(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
508 struct ctdb_client_context
*client
,
511 int ctdb_message_takeover_run(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
512 struct ctdb_client_context
*client
,
513 int destnode
, struct ctdb_srvid_message
*msg
);
515 int ctdb_message_rebalance_node(TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
516 struct ctdb_client_context
*client
,
517 int destnode
, uint32_t pnn
);
519 int ctdb_message_disable_takeover_runs(TALLOC_CTX
*mem_ctx
,
520 struct tevent_context
*ev
,
521 struct ctdb_client_context
*client
,
523 struct ctdb_disable_message
*disable
);
525 int ctdb_message_disable_recoveries(TALLOC_CTX
*mem_ctx
,
526 struct tevent_context
*ev
,
527 struct ctdb_client_context
*client
,
529 struct ctdb_disable_message
*disable
);
531 int ctdb_message_disable_ip_check(TALLOC_CTX
*mem_ctx
,
532 struct tevent_context
*ev
,
533 struct ctdb_client_context
*client
,
534 int destnode
, uint32_t timeout
);
536 #endif /* __CTDB_CLIENT_SYNC_H__ */