make the function to canonicalize a sockaddr structure public
[sahlberg/ctdb.git] / include / ctdb.h
1 /* 
2    ctdb database library
3
4    Copyright (C) Andrew Tridgell  2006
5
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.
10    
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.
15    
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/>.
18 */
19
20 #ifndef _CTDB_H
21 #define _CTDB_H
22
23 #define CTDB_IMMEDIATE_MIGRATION        0x00000001
24 struct ctdb_call {
25         int call_id;
26         TDB_DATA key;
27         TDB_DATA call_data;
28         TDB_DATA reply_data;
29         uint32_t status;
30         uint32_t flags;
31 };
32
33 /*
34   structure passed to a ctdb call backend function
35 */
36 struct ctdb_call_info {
37         TDB_DATA key;          /* record key */
38         TDB_DATA record_data;  /* current data in the record */
39         TDB_DATA *new_data;    /* optionally updated record data */
40         TDB_DATA *call_data;   /* optionally passed from caller */
41         TDB_DATA *reply_data;  /* optionally returned by function */
42         uint32_t status;       /* optional reply status - defaults to zero */
43 };
44
45 #define CTDB_ERR_INVALID 1
46 #define CTDB_ERR_NOMEM 2
47
48 /*
49   ctdb flags
50 */
51 #define CTDB_FLAG_TORTURE      (1<<1)
52
53 /* 
54    a message handler ID meaning "give me all messages"
55  */
56 #define CTDB_SRVID_ALL (~(uint64_t)0)
57
58 /*
59   srvid type : RECOVERY
60 */
61 #define CTDB_SRVID_RECOVERY     0xF100000000000000LL
62
63 /* 
64    a message handler ID meaning that the cluster has been reconfigured
65  */
66 #define CTDB_SRVID_RECONFIGURE 0xF200000000000000LL
67
68 /* 
69    a message handler ID meaning that an IP address has been released
70  */
71 #define CTDB_SRVID_RELEASE_IP 0xF300000000000000LL
72
73 /* 
74    a message ID meaning that a nodes flags have changed
75  */
76 #define CTDB_SRVID_NODE_FLAGS_CHANGED 0xF400000000000000LL
77
78 /* 
79    a message ID meaning that a node should be banned
80  */
81 #define CTDB_SRVID_BAN_NODE 0xF500000000000000LL
82
83 /* 
84    a message ID meaning that a node should be unbanned
85  */
86 #define CTDB_SRVID_UNBAN_NODE 0xF600000000000000LL
87
88 /*
89   a message to tell the recovery daemon to fetch a set of records
90  */
91 #define CTDB_SRVID_VACUUM_FETCH 0xF700000000000000LL
92
93 /*
94   a message to tell the recovery daemon to write a talloc memdump
95   to the log
96  */
97 #define CTDB_SRVID_MEM_DUMP 0xF800000000000000LL
98
99
100 /* used on the domain socket, send a pdu to the local daemon */
101 #define CTDB_CURRENT_NODE     0xF0000001
102 /* send a broadcast to all nodes in the cluster, active or not */
103 #define CTDB_BROADCAST_ALL    0xF0000002
104 /* send a broadcast to all nodes in the current vnn map */
105 #define CTDB_BROADCAST_VNNMAP 0xF0000003
106 /* send a broadcast to all connected nodes */
107 #define CTDB_BROADCAST_CONNECTED 0xF0000004
108
109 /* the key used for transaction locking on persistent databases */
110 #define CTDB_TRANSACTION_LOCK_KEY "__transaction_lock__"
111
112 enum control_state {CTDB_CONTROL_WAIT, CTDB_CONTROL_DONE, CTDB_CONTROL_ERROR, CTDB_CONTROL_TIMEOUT};
113
114 struct ctdb_client_control_state {
115         struct ctdb_context *ctdb;
116         uint32_t reqid;
117         int32_t status;
118         TDB_DATA outdata;
119         enum control_state state;
120         char *errormsg;
121         struct ctdb_req_control *c;
122
123         /* if we have a callback registered for the completion (or failure) of
124            this control
125            if a callback is used, it MUST talloc_free the cb_data passed to it
126         */
127         struct {
128                 void (*fn)(struct ctdb_client_control_state *);
129                 void *private_data;
130         } async;        
131 };
132
133
134 struct event_context;
135
136 /*
137   initialise ctdb subsystem
138 */
139 struct ctdb_context *ctdb_init(struct event_context *ev);
140
141 /*
142   choose the transport
143 */
144 int ctdb_set_transport(struct ctdb_context *ctdb, const char *transport);
145
146 /*
147   set the directory for the local databases
148 */
149 int ctdb_set_tdb_dir(struct ctdb_context *ctdb, const char *dir);
150 int ctdb_set_tdb_dir_persistent(struct ctdb_context *ctdb, const char *dir);
151
152 /*
153   set some flags
154 */
155 void ctdb_set_flags(struct ctdb_context *ctdb, unsigned flags);
156
157 /*
158   set max acess count before a dmaster migration
159 */
160 void ctdb_set_max_lacount(struct ctdb_context *ctdb, unsigned count);
161
162 /*
163   tell ctdb what address to listen on, in transport specific format
164 */
165 int ctdb_set_address(struct ctdb_context *ctdb, const char *address);
166
167 int ctdb_set_socketname(struct ctdb_context *ctdb, const char *socketname);
168
169 /*
170   tell ctdb what nodes are available. This takes a filename, which will contain
171   1 node address per line, in a transport specific format
172 */
173 int ctdb_set_nlist(struct ctdb_context *ctdb, const char *nlist);
174
175 /*
176   Check that a specific ip address exists in the node list and returns
177   the id for the node or -1
178 */
179 int ctdb_ip_to_nodeid(struct ctdb_context *ctdb, const char *nodeip);
180
181 /*
182   start the ctdb protocol
183 */
184 int ctdb_start(struct ctdb_context *ctdb);
185 int ctdb_start_daemon(struct ctdb_context *ctdb, bool do_fork);
186
187 /*
188   attach to a ctdb database
189 */
190 struct ctdb_db_context *ctdb_attach(struct ctdb_context *ctdb, const char *name, bool persistent, uint32_t tdb_flags);
191
192 /*
193   find an attached ctdb_db handle given a name
194  */
195 struct ctdb_db_context *ctdb_db_handle(struct ctdb_context *ctdb, const char *name);
196
197 /*
198   error string for last ctdb error
199 */
200 const char *ctdb_errstr(struct ctdb_context *);
201
202 /* a ctdb call function */
203 typedef int (*ctdb_fn_t)(struct ctdb_call_info *);
204
205 /*
206   setup a ctdb call function
207 */
208 int ctdb_set_call(struct ctdb_db_context *ctdb_db, ctdb_fn_t fn, uint32_t id);
209
210
211
212 /*
213   make a ctdb call. The associated ctdb call function will be called on the DMASTER
214   for the given record
215 */
216 int ctdb_call(struct ctdb_db_context *ctdb_db, struct ctdb_call *call);
217
218 /*
219   initiate an ordered ctdb cluster shutdown
220   this function will never return
221 */
222 void ctdb_shutdown(struct ctdb_context *ctdb);
223
224 /* return pnn of this node */
225 uint32_t ctdb_get_pnn(struct ctdb_context *ctdb);
226
227 /*
228   return the number of nodes
229 */
230 uint32_t ctdb_get_num_nodes(struct ctdb_context *ctdb);
231
232 /* setup a handler for ctdb messages */
233 typedef void (*ctdb_message_fn_t)(struct ctdb_context *, uint64_t srvid, 
234                                   TDB_DATA data, void *);
235 int ctdb_set_message_handler(struct ctdb_context *ctdb, uint64_t srvid, 
236                              ctdb_message_fn_t handler,
237                              void *private_data);
238
239
240 int ctdb_call(struct ctdb_db_context *ctdb_db, struct ctdb_call *call);
241 struct ctdb_client_call_state *ctdb_call_send(struct ctdb_db_context *ctdb_db, struct ctdb_call *call);
242 int ctdb_call_recv(struct ctdb_client_call_state *state, struct ctdb_call *call);
243
244 /* send a ctdb message */
245 int ctdb_send_message(struct ctdb_context *ctdb, uint32_t pnn,
246                       uint64_t srvid, TDB_DATA data);
247
248
249 /* 
250    Fetch a ctdb record from a remote node
251  . Underneath this will force the
252    dmaster for the record to be moved to the local node. 
253 */
254 struct ctdb_record_handle *ctdb_fetch_lock(struct ctdb_db_context *ctdb_db, TALLOC_CTX *mem_ctx, 
255                                            TDB_DATA key, TDB_DATA *data);
256
257 int ctdb_record_store(struct ctdb_record_handle *h, TDB_DATA data);
258
259 int ctdb_fetch(struct ctdb_db_context *ctdb_db, TALLOC_CTX *mem_ctx, 
260                TDB_DATA key, TDB_DATA *data);
261
262 int ctdb_register_message_handler(struct ctdb_context *ctdb, 
263                                   TALLOC_CTX *mem_ctx,
264                                   uint64_t srvid,
265                                   ctdb_message_fn_t handler,
266                                   void *private_data);
267
268 struct ctdb_db_context *find_ctdb_db(struct ctdb_context *ctdb, uint32_t id);
269
270
271 struct ctdb_context *ctdb_cmdline_client(struct event_context *ev);
272
273 struct ctdb_statistics;
274 int ctdb_ctrl_statistics(struct ctdb_context *ctdb, uint32_t destnode, struct ctdb_statistics *status);
275
276 int ctdb_ctrl_shutdown(struct ctdb_context *ctdb, struct timeval timeout, uint32_t destnode);
277
278 struct ctdb_vnn_map;
279 int ctdb_ctrl_getvnnmap(struct ctdb_context *ctdb, 
280                 struct timeval timeout, uint32_t destnode, 
281                 TALLOC_CTX *mem_ctx, struct ctdb_vnn_map **vnnmap);
282 int ctdb_ctrl_setvnnmap(struct ctdb_context *ctdb,
283                 struct timeval timeout, uint32_t destnode, 
284                 TALLOC_CTX *mem_ctx, struct ctdb_vnn_map *vnnmap);
285
286 /* table that contains a list of all dbids on a node
287  */
288 struct ctdb_dbid_map {
289         uint32_t num;
290         struct ctdb_dbid {
291                 uint32_t dbid;
292                 bool persistent;
293         } dbs[1];
294 };
295 int ctdb_ctrl_getdbmap(struct ctdb_context *ctdb, 
296         struct timeval timeout, uint32_t destnode, 
297         TALLOC_CTX *mem_ctx, struct ctdb_dbid_map **dbmap);
298
299
300 struct ctdb_node_map;
301
302 int ctdb_ctrl_getnodemap(struct ctdb_context *ctdb, 
303                     struct timeval timeout, uint32_t destnode, 
304                     TALLOC_CTX *mem_ctx, struct ctdb_node_map **nodemap);
305
306 int ctdb_ctrl_reload_nodes_file(struct ctdb_context *ctdb, 
307                     struct timeval timeout, uint32_t destnode);
308
309 struct ctdb_key_list {
310         uint32_t dbid;
311         uint32_t num;
312         TDB_DATA *keys;
313         struct ctdb_ltdb_header *headers;
314         TDB_DATA *data;
315 };
316
317 int ctdb_ctrl_pulldb(
318        struct ctdb_context *ctdb, uint32_t destnode, uint32_t dbid,
319        uint32_t lmaster, TALLOC_CTX *mem_ctx,
320        struct timeval timeout, TDB_DATA *outdata);
321
322 struct ctdb_client_control_state *ctdb_ctrl_pulldb_send(
323        struct ctdb_context *ctdb, uint32_t destnode, uint32_t dbid,
324        uint32_t lmaster, TALLOC_CTX *mem_ctx, struct timeval timeout);
325
326 int ctdb_ctrl_pulldb_recv(
327        struct ctdb_context *ctdb,
328        TALLOC_CTX *mem_ctx, struct ctdb_client_control_state *state,
329        TDB_DATA *outdata);
330
331 int ctdb_ctrl_pushdb(
332        struct ctdb_context *ctdb, uint32_t destnode, uint32_t dbid,
333        TALLOC_CTX *mem_ctx,
334        struct timeval timeout, TDB_DATA indata);
335
336 struct ctdb_client_control_state *ctdb_ctrl_pushdb_send(
337        struct ctdb_context *ctdb, uint32_t destnode, uint32_t dbid,
338        TALLOC_CTX *mem_ctx, struct timeval timeout,
339        TDB_DATA indata);
340
341 int ctdb_ctrl_pushdb_recv(
342        struct ctdb_context *ctdb, TALLOC_CTX *mem_ctx,
343        struct ctdb_client_control_state *state);
344
345
346 int ctdb_ctrl_copydb(struct ctdb_context *ctdb, 
347         struct timeval timeout, uint32_t sourcenode, 
348         uint32_t destnode, uint32_t dbid, uint32_t lmaster, 
349         TALLOC_CTX *mem_ctx);
350
351 int ctdb_ctrl_getdbpath(struct ctdb_context *ctdb, struct timeval timeout, uint32_t destnode, uint32_t dbid, TALLOC_CTX *mem_ctx, const char **path);
352 int ctdb_ctrl_getdbname(struct ctdb_context *ctdb, struct timeval timeout, uint32_t destnode, uint32_t dbid, TALLOC_CTX *mem_ctx, const char **name);
353 int ctdb_ctrl_createdb(struct ctdb_context *ctdb, struct timeval timeout, uint32_t destnode, TALLOC_CTX *mem_ctx, const char *name, bool persistent);
354
355 int ctdb_ctrl_process_exists(struct ctdb_context *ctdb, uint32_t destnode, pid_t pid);
356
357 int ctdb_ctrl_ping(struct ctdb_context *ctdb, uint32_t destnode);
358
359 int ctdb_ctrl_get_config(struct ctdb_context *ctdb);
360
361 int ctdb_ctrl_get_debuglevel(struct ctdb_context *ctdb, uint32_t destnode, int32_t *level);
362 int ctdb_ctrl_set_debuglevel(struct ctdb_context *ctdb, uint32_t destnode, int32_t level);
363
364 /*
365   change dmaster for all keys in the database to the new value
366  */
367 int ctdb_ctrl_setdmaster(struct ctdb_context *ctdb, 
368         struct timeval timeout, uint32_t destnode, 
369         TALLOC_CTX *mem_ctx, uint32_t dbid, uint32_t dmaster);
370
371 /*
372   write a record on a specific db (this implicitely updates dmaster of the record to locally be the vnn of the node where the control is executed on)
373  */
374 int ctdb_ctrl_write_record(struct ctdb_context *ctdb, uint32_t destnode, TALLOC_CTX *mem_ctx, uint32_t dbid, TDB_DATA key, TDB_DATA data);
375
376 #define CTDB_RECOVERY_NORMAL            0
377 #define CTDB_RECOVERY_ACTIVE            1
378
379 /*
380   get the recovery mode of a remote node
381  */
382 int ctdb_ctrl_getrecmode(struct ctdb_context *ctdb, TALLOC_CTX *mem_ctx, struct timeval timeout, uint32_t destnode, uint32_t *recmode);
383
384 struct ctdb_client_control_state *ctdb_ctrl_getrecmode_send(struct ctdb_context *ctdb, TALLOC_CTX *mem_ctx, struct timeval timeout, uint32_t destnode);
385
386 int ctdb_ctrl_getrecmode_recv(struct ctdb_context *ctdb, TALLOC_CTX *mem_ctx, struct ctdb_client_control_state *state, uint32_t *recmode);
387
388
389 /*
390   set the recovery mode of a remote node
391  */
392 int ctdb_ctrl_setrecmode(struct ctdb_context *ctdb, struct timeval timeout, uint32_t destnode, uint32_t recmode);
393 /*
394   get the monitoring mode of a remote node
395  */
396 int ctdb_ctrl_getmonmode(struct ctdb_context *ctdb, struct timeval timeout, uint32_t destnode, uint32_t *monmode);
397
398 /*
399   set the monitoring mode of a remote node to active
400  */
401 int ctdb_ctrl_enable_monmode(struct ctdb_context *ctdb, struct timeval timeout, uint32_t destnode);
402
403 /*
404   set the monitoring mode of a remote node to disabled
405  */
406 int ctdb_ctrl_disable_monmode(struct ctdb_context *ctdb, struct timeval timeout, uint32_t destnode);
407
408
409 /*
410   get the recovery master of a remote node
411  */
412 int ctdb_ctrl_getrecmaster(struct ctdb_context *ctdb, TALLOC_CTX *mem_ctx, struct timeval timeout, uint32_t destnode, uint32_t *recmaster);
413
414 struct ctdb_client_control_state *ctdb_ctrl_getrecmaster_send(struct ctdb_context *ctdb, TALLOC_CTX *mem_ctx, struct timeval timeout, uint32_t destnode);
415
416 int ctdb_ctrl_getrecmaster_recv(struct ctdb_context *ctdb, TALLOC_CTX *mem_ctx, struct ctdb_client_control_state *state, uint32_t *recmaster);
417
418
419
420 /*
421   set the recovery master of a remote node
422  */
423 int ctdb_ctrl_setrecmaster(struct ctdb_context *ctdb, struct timeval timeout, uint32_t destnode, uint32_t recmaster);
424
425 uint32_t *ctdb_get_connected_nodes(struct ctdb_context *ctdb, 
426                                    struct timeval timeout, 
427                                    TALLOC_CTX *mem_ctx,
428                                    uint32_t *num_nodes);
429
430 int ctdb_statistics_reset(struct ctdb_context *ctdb, uint32_t destnode);
431
432 int ctdb_set_logfile(struct ctdb_context *ctdb, const char *logfile, bool use_syslog);
433
434 typedef int (*ctdb_traverse_func)(struct ctdb_context *, TDB_DATA, TDB_DATA, void *);
435 int ctdb_traverse(struct ctdb_db_context *ctdb_db, ctdb_traverse_func fn, void *private_data);
436
437 int ctdb_dump_db(struct ctdb_db_context *ctdb_db, FILE *f);
438
439 /*
440   get the pid of a ctdb daemon
441  */
442 int ctdb_ctrl_getpid(struct ctdb_context *ctdb, struct timeval timeout, uint32_t destnode, uint32_t *pid);
443
444 int ctdb_ctrl_freeze(struct ctdb_context *ctdb, struct timeval timeout, 
445                         uint32_t destnode);
446
447 struct ctdb_client_control_state *
448 ctdb_ctrl_freeze_send(struct ctdb_context *ctdb, TALLOC_CTX *mem_ctx, 
449                         struct timeval timeout, uint32_t destnode);
450
451 int ctdb_ctrl_freeze_recv(struct ctdb_context *ctdb, TALLOC_CTX *mem_ctx, 
452                         struct ctdb_client_control_state *state);
453
454 int ctdb_ctrl_thaw(struct ctdb_context *ctdb, struct timeval timeout, uint32_t destnode);
455
456 int ctdb_ctrl_getpnn(struct ctdb_context *ctdb, struct timeval timeout, uint32_t destnode);
457
458 int ctdb_ctrl_get_tunable(struct ctdb_context *ctdb, 
459                           struct timeval timeout, 
460                           uint32_t destnode,
461                           const char *name, uint32_t *value);
462
463 int ctdb_ctrl_set_tunable(struct ctdb_context *ctdb, 
464                           struct timeval timeout, 
465                           uint32_t destnode,
466                           const char *name, uint32_t value);
467
468 int ctdb_ctrl_list_tunables(struct ctdb_context *ctdb, 
469                             struct timeval timeout, 
470                             uint32_t destnode,
471                             TALLOC_CTX *mem_ctx,
472                             const char ***list, uint32_t *count);
473
474 int ctdb_ctrl_modflags(struct ctdb_context *ctdb, 
475                        struct timeval timeout, 
476                        uint32_t destnode, 
477                        uint32_t set, uint32_t clear);
478
479 enum ctdb_server_id_type { SERVER_TYPE_SAMBA=1 };
480
481 struct ctdb_server_id {
482         enum ctdb_server_id_type type;
483         uint32_t pnn;
484         uint32_t server_id;
485 };
486
487 struct ctdb_server_id_list {
488         uint32_t num;
489         struct ctdb_server_id server_ids[1];
490 };
491
492
493 int ctdb_ctrl_register_server_id(struct ctdb_context *ctdb,
494                 struct timeval timeout,
495                 struct ctdb_server_id *id);
496 int ctdb_ctrl_unregister_server_id(struct ctdb_context *ctdb, 
497                 struct timeval timeout, 
498                 struct ctdb_server_id *id);
499 int ctdb_ctrl_check_server_id(struct ctdb_context *ctdb,
500                 struct timeval timeout, uint32_t destnode, 
501                 struct ctdb_server_id *id, uint32_t *status);
502 int ctdb_ctrl_get_server_id_list(struct ctdb_context *ctdb,
503                 TALLOC_CTX *mem_ctx,
504                 struct timeval timeout, uint32_t destnode, 
505                 struct ctdb_server_id_list **svid_list);
506
507 struct ctdb_uptime {
508         struct timeval current_time;
509         struct timeval ctdbd_start_time;
510         struct timeval last_recovery_started;
511         struct timeval last_recovery_finished;
512 };
513
514 int ctdb_socket_connect(struct ctdb_context *ctdb);
515
516 /*
517   get the uptime of a remote node
518  */
519 int ctdb_ctrl_uptime(struct ctdb_context *ctdb, TALLOC_CTX *mem_ctx, struct timeval timeout, uint32_t destnode, struct ctdb_uptime **uptime);
520
521 struct ctdb_client_control_state *ctdb_ctrl_uptime_send(struct ctdb_context *ctdb, TALLOC_CTX *mem_ctx, struct timeval timeout, uint32_t destnode);
522
523 int ctdb_ctrl_uptime_recv(struct ctdb_context *ctdb, TALLOC_CTX *mem_ctx, struct ctdb_client_control_state *state, struct ctdb_uptime **uptime);
524
525 int ctdb_ctrl_end_recovery(struct ctdb_context *ctdb, struct timeval timeout, uint32_t destnode);
526
527 int ctdb_ctrl_getreclock(struct ctdb_context *ctdb, 
528         struct timeval timeout, uint32_t destnode, 
529         TALLOC_CTX *mem_ctx, const char **reclock);
530
531 uint32_t *list_of_active_nodes(struct ctdb_context *ctdb,
532                                 struct ctdb_node_map *node_map,
533                                 TALLOC_CTX *mem_ctx,
534                                 bool include_self);
535 uint32_t *list_of_vnnmap_nodes(struct ctdb_context *ctdb,
536                                 struct ctdb_vnn_map *vnn_map,
537                                 TALLOC_CTX *mem_ctx,
538                                 bool include_self);
539
540 int ctdb_read_pnn_lock(int fd, int32_t pnn);
541
542 /*
543   get capabilities of a remote node
544  */
545 int ctdb_ctrl_getcapabilities(struct ctdb_context *ctdb, struct timeval timeout, uint32_t destnode, uint32_t *capabilities);
546
547 struct ctdb_client_control_state *ctdb_ctrl_getcapabilities_send(struct ctdb_context *ctdb, TALLOC_CTX *mem_ctx, struct timeval timeout, uint32_t destnode);
548
549 int ctdb_ctrl_getcapabilities_recv(struct ctdb_context *ctdb, TALLOC_CTX *mem_ctx, struct ctdb_client_control_state *state, uint32_t *capabilities);
550
551 struct ctdb_marshall_buffer *ctdb_marshall_add(TALLOC_CTX *mem_ctx, 
552                                                struct ctdb_marshall_buffer *m,
553                                                uint64_t db_id,
554                                                uint32_t reqid,
555                                                TDB_DATA key,
556                                                struct ctdb_ltdb_header *header,
557                                                TDB_DATA data);
558 TDB_DATA ctdb_marshall_finish(struct ctdb_marshall_buffer *m);
559
560 struct ctdb_transaction_handle *ctdb_transaction_start(struct ctdb_db_context *ctdb_db,
561                                                        TALLOC_CTX *mem_ctx);
562 int ctdb_transaction_fetch(struct ctdb_transaction_handle *h, 
563                            TALLOC_CTX *mem_ctx, 
564                            TDB_DATA key, TDB_DATA *data);
565 int ctdb_transaction_store(struct ctdb_transaction_handle *h, 
566                            TDB_DATA key, TDB_DATA data);
567 int ctdb_transaction_commit(struct ctdb_transaction_handle *h);
568
569 #endif