summaryrefslogtreecommitdiff
path: root/ctdb/server/ctdb_control.c
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2016-04-05 16:13:43 +1000
committerMartin Schwenke <martins@samba.org>2016-06-08 00:51:28 +0200
commit5b4dd8c001c53befd088cdfbdbfaa826315b7a66 (patch)
tree232e6eb04642799942de31393a25fc4430c2235f /ctdb/server/ctdb_control.c
parent872eb37eb401c67d3a5875ec4e323498466fd056 (diff)
downloadsamba-5b4dd8c001c53befd088cdfbdbfaa826315b7a66.tar.gz
ctdb-protocol: CTDB_CONTROL_SET_RECLOCK_FILE is obsolete
Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb/server/ctdb_control.c')
-rw-r--r--ctdb/server/ctdb_control.c32
1 files changed, 2 insertions, 30 deletions
diff --git a/ctdb/server/ctdb_control.c b/ctdb/server/ctdb_control.c
index 9819176c970..27ebe6c4449 100644
--- a/ctdb/server/ctdb_control.c
+++ b/ctdb/server/ctdb_control.c
@@ -514,36 +514,8 @@ static int32_t ctdb_control_dispatch(struct ctdb_context *ctdb,
outdata->dsize = strlen(ctdb->recovery_lock_file) + 1;
}
return 0;
- case CTDB_CONTROL_SET_RECLOCK_FILE: {
- char *t;
-
- if (indata.dsize == 0) {
- TALLOC_FREE(ctdb->recovery_lock_file);
- return 0;
- }
-
- /* Return silent success if unchanged. Recovery
- * master updates all nodes on each recovery - we
- * don't need the extra memory allocation or log
- * message each time. */
- if (ctdb->recovery_lock_file != NULL &&
- strcmp(discard_const(indata.dptr),
- ctdb->recovery_lock_file) == 0) {
- return 0;
- }
-
- t = talloc_strdup(ctdb, discard_const(indata.dptr));
- if (t == NULL) {
- DEBUG(DEBUG_ERR, ("Out of memory in SET_RECLOCK_FILE\n"));
- return -1;
- }
-
- talloc_free(ctdb->recovery_lock_file);
- ctdb->recovery_lock_file = t;
- DEBUG(DEBUG_NOTICE, ("Updated recovery lock file to %s\n", t));
-
- return 0;
- }
+ case CTDB_CONTROL_SET_RECLOCK_FILE:
+ return control_not_implemented("SET_RECLOCK", NULL);
case CTDB_CONTROL_STOP_NODE:
CHECK_CONTROL_DATA_SIZE(0);