int main(int argc, char *argv[])
{
struct ctdb_context *ctdb_context;
+ struct ctdb_db_context *ctdb_db_context;
ctdb_handle *handle;
struct pollfd pfd;
int ret;
exit(10);
}
- handle = ctdb_getpnn_send(ctdb_context, CTDB_CURRENT_NODE, pnn_cb, NULL);
+ handle = ctdb_attachdb_send(ctdb_context, CTDB_CURRENT_NODE, "test_test.tdb", 0, 0, adb_cb, NULL);
if (handle == NULL) {
- printf("Failed to send get_pnn control\n");
+ printf("Failed to send attachdb control\n");
exit(10);
}
- handle = ctdb_getrecmaster_send(ctdb_context, CTDB_CURRENT_NODE, rm_cb, NULL);
+ handle = ctdb_getpnn_send(ctdb_context, CTDB_CURRENT_NODE, pnn_cb, NULL);
if (handle == NULL) {
- printf("Failed to send get_recmaster control\n");
+ printf("Failed to send get_pnn control\n");
exit(10);
}
- handle = ctdb_attachdb_send(ctdb_context, CTDB_CURRENT_NODE, "test_test.tdb", 0,0, adb_cb, NULL);
+ handle = ctdb_getrecmaster_send(ctdb_context, CTDB_CURRENT_NODE, rm_cb, NULL);
if (handle == NULL) {
- printf("Failed to send attachdb control\n");
+ printf("Failed to send get_recmaster control\n");
exit(10);
}