From 66156220ebf5dc212e9aa86015b7301d1b665b50 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 5 Apr 2007 03:51:49 +0000 Subject: r22082: merged the ctdb changes from bzr added opendb ctdb backend from ronnie (This used to be commit b0da25cb79f860bfa14ba7a8419c7996d936292b) --- source4/cluster/ctdb/include/ctdb.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source4/cluster/ctdb/include/ctdb.h') diff --git a/source4/cluster/ctdb/include/ctdb.h b/source4/cluster/ctdb/include/ctdb.h index 51eeaebedb..9049314401 100644 --- a/source4/cluster/ctdb/include/ctdb.h +++ b/source4/cluster/ctdb/include/ctdb.h @@ -21,12 +21,14 @@ #ifndef _CTDB_H #define _CTDB_H +#define CTDB_IMMEDIATE_MIGRATION 0x00000001 struct ctdb_call { int call_id; TDB_DATA key; TDB_DATA call_data; TDB_DATA reply_data; uint32_t status; + uint32_t flags; }; /* @@ -148,6 +150,7 @@ int ctdb_set_message_handler(struct ctdb_context *ctdb, ctdb_message_fn_t handle int ctdb_send_message(struct ctdb_context *ctdb, uint32_t vnn, uint32_t srvid, TDB_DATA data); + /* fetch and lock a ctdb record. Underneath this will force the dmaster for the record to be moved to the local node. @@ -155,7 +158,7 @@ int ctdb_send_message(struct ctdb_context *ctdb, uint32_t vnn, The lock is released when is talloc_free() is called on the returned ctdb_record_handle. */ -struct ctdb_record_handle *ctdb_fetch_lock(struct ctdb_db_context *ctdb_db, TDB_DATA key, TDB_DATA *data); +struct ctdb_record_handle *ctdb_fetch_lock(struct ctdb_db_context *ctdb_db, TALLOC_CTX *mem_ctx, TDB_DATA key, TDB_DATA *data); /* change the data in a record held with a ctdb_record_handle @@ -163,4 +166,5 @@ struct ctdb_record_handle *ctdb_fetch_lock(struct ctdb_db_context *ctdb_db, TDB_ */ int ctdb_record_store(struct ctdb_record_handle *rec, TDB_DATA data); + #endif -- cgit