summaryrefslogtreecommitdiffstats
path: root/ctdb/include
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2007-06-05 17:57:07 +1000
committerAndrew Tridgell <tridge@samba.org>2007-06-05 17:57:07 +1000
commitbe3a00bd7305065bccfc014abd34a4e47fea3e27 (patch)
tree9e2167b21e981ce73e43681f4c789d880f73de83 /ctdb/include
parentac55bc4166c263c4fe0e0b7dbca803226709f499 (diff)
downloadsamba-be3a00bd7305065bccfc014abd34a4e47fea3e27.tar.gz
samba-be3a00bd7305065bccfc014abd34a4e47fea3e27.tar.xz
samba-be3a00bd7305065bccfc014abd34a4e47fea3e27.zip
clean out some more cruft
(This used to be ctdb commit ad16c5fe2748b48a6f6c79976359d56d9bed33f4)
Diffstat (limited to 'ctdb/include')
-rw-r--r--ctdb/include/ctdb.h11
-rw-r--r--ctdb/include/ctdb_private.h3
2 files changed, 1 insertions, 13 deletions
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)
/*
@@ -103,11 +102,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
*/
void ctdb_set_max_lacount(struct ctdb_context *ctdb, unsigned count);
@@ -278,11 +272,6 @@ int ctdb_ctrl_setdmaster(struct ctdb_context *ctdb,
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)
*/
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);
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,