summaryrefslogtreecommitdiff
path: root/ctdb/server/ctdb_control.c
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2016-07-25 15:41:34 +1000
committerStefan Metzmacher <metze@samba.org>2016-07-28 05:00:17 +0200
commit3314a09aafaa90adc5503c08baa4d6f965a2b7c5 (patch)
treea0babe09a874624fe66e875a7efae5a987062b4b /ctdb/server/ctdb_control.c
parent47c400f42cc1eb72e134aefdb24e6dca70d71cad (diff)
downloadsamba-3314a09aafaa90adc5503c08baa4d6f965a2b7c5.tar.gz
ctdb-daemon: Drop implementation of global transaction controls
These were used in serial recovery and for restoring databases using older ctdb tool. New code uses database specific transaction controls. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'ctdb/server/ctdb_control.c')
-rw-r--r--ctdb/server/ctdb_control.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/ctdb/server/ctdb_control.c b/ctdb/server/ctdb_control.c
index ea68bbfade4..f01815c93b1 100644
--- a/ctdb/server/ctdb_control.c
+++ b/ctdb/server/ctdb_control.c
@@ -439,12 +439,10 @@ static int32_t ctdb_control_dispatch(struct ctdb_context *ctdb,
return ctdb_control_send_gratious_arp(ctdb, indata);
case CTDB_CONTROL_TRANSACTION_START:
- CHECK_CONTROL_DATA_SIZE(sizeof(uint32_t));
- return ctdb_control_transaction_start(ctdb, *(uint32_t *)indata.dptr);
+ return control_not_implemented("TRANSACTION_START", NULL);
case CTDB_CONTROL_TRANSACTION_COMMIT:
- CHECK_CONTROL_DATA_SIZE(sizeof(uint32_t));
- return ctdb_control_transaction_commit(ctdb, *(uint32_t *)indata.dptr);
+ return control_not_implemented("TRANSACTION_COMMIT", NULL);
case CTDB_CONTROL_WIPE_DATABASE:
CHECK_CONTROL_DATA_SIZE(sizeof(struct ctdb_transdb));
@@ -573,8 +571,7 @@ static int32_t ctdb_control_dispatch(struct ctdb_context *ctdb,
return control_not_implemented("GET_DB_PRIORITY", "");
case CTDB_CONTROL_TRANSACTION_CANCEL:
- CHECK_CONTROL_DATA_SIZE(0);
- return ctdb_control_transaction_cancel(ctdb);
+ return control_not_implemented("TRANSACTION_CANCEL", NULL);
case CTDB_CONTROL_REGISTER_NOTIFY:
return ctdb_control_register_notify(ctdb, client_id, indata);