From be3a00bd7305065bccfc014abd34a4e47fea3e27 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 5 Jun 2007 17:57:07 +1000 Subject: clean out some more cruft (This used to be ctdb commit ad16c5fe2748b48a6f6c79976359d56d9bed33f4) --- ctdb/include/ctdb.h | 11 ----------- ctdb/include/ctdb_private.h | 3 +-- 2 files changed, 1 insertion(+), 13 deletions(-) (limited to 'ctdb/include') diff --git a/ctdb/include/ctdb.h b/ctdb/include/ctdb.h index 74039420fa..be283a01bf 100644 --- a/ctdb/include/ctdb.h +++ b/ctdb/include/ctdb.h @@ -49,7 +49,6 @@ struct ctdb_call_info { /* ctdb flags */ -#define CTDB_FLAG_SELF_CONNECT (1<<0) #define CTDB_FLAG_TORTURE (1<<1) /* @@ -102,11 +101,6 @@ int ctdb_set_tdb_dir(struct ctdb_context *ctdb, const char *dir); */ void ctdb_set_flags(struct ctdb_context *ctdb, unsigned flags); -/* - clear some flags -*/ -void ctdb_clear_flags(struct ctdb_context *ctdb, unsigned flags); - /* set max acess count before a dmaster migration */ @@ -277,11 +271,6 @@ int ctdb_ctrl_setdmaster(struct ctdb_context *ctdb, struct timeval timeout, uint32_t destnode, TALLOC_CTX *mem_ctx, uint32_t dbid, uint32_t dmaster); -/* - delete all records from a tdb - */ -int ctdb_ctrl_cleardb(struct ctdb_context *ctdb, uint32_t destnode, TALLOC_CTX *mem_ctx, uint32_t dbid); - /* 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) */ diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h index 25fb1c685e..7f7c6412cf 100644 --- a/ctdb/include/ctdb_private.h +++ b/ctdb/include/ctdb_private.h @@ -369,7 +369,7 @@ enum ctdb_controls {CTDB_CONTROL_PROCESS_EXISTS = 0, CTDB_CONTROL_GET_DBMAP = 9, CTDB_CONTROL_GET_NODEMAP = 10, CTDB_CONTROL_SET_DMASTER = 11, - CTDB_CONTROL_CLEAR_DB = 12, + /* #12 removed */ CTDB_CONTROL_PULL_DB = 13, CTDB_CONTROL_PUSH_DB = 14, CTDB_CONTROL_GET_RECMODE = 15, @@ -893,7 +893,6 @@ struct ctdb_rec_data *ctdb_marshall_record(TALLOC_CTX *mem_ctx, uint32_t reqid, int32_t ctdb_control_pull_db(struct ctdb_context *ctdb, TDB_DATA indata, TDB_DATA *outdata); int32_t ctdb_control_push_db(struct ctdb_context *ctdb, TDB_DATA indata); int32_t ctdb_control_set_dmaster(struct ctdb_context *ctdb, TDB_DATA indata); -int32_t ctdb_control_clear_db(struct ctdb_context *ctdb, TDB_DATA indata); int32_t ctdb_control_set_recmode(struct ctdb_context *ctdb, struct ctdb_req_control *c, -- cgit