summaryrefslogtreecommitdiffstats
path: root/ctdb/include/ctdb.h
diff options
context:
space:
mode:
authorRonnie sahlberg <ronniesahlberg@gmail.com>2007-04-17 12:42:52 +1000
committerRonnie sahlberg <ronniesahlberg@gmail.com>2007-04-17 12:42:52 +1000
commitbccf3c7e8e8ecf8310367622239e246bf9dd720c (patch)
tree68b80c10f80e655dee2585692cb3279b038e30ff /ctdb/include/ctdb.h
parent11b5345afc6adeb5523fa989f7e783fd5febc2c8 (diff)
downloadsamba-bccf3c7e8e8ecf8310367622239e246bf9dd720c.tar.gz
samba-bccf3c7e8e8ecf8310367622239e246bf9dd720c.tar.xz
samba-bccf3c7e8e8ecf8310367622239e246bf9dd720c.zip
create symbols for fetch lock response status
(This used to be ctdb commit d8243f474897dc65fb7286225b07bdf48b6faed0)
Diffstat (limited to 'ctdb/include/ctdb.h')
-rw-r--r--ctdb/include/ctdb.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ctdb/include/ctdb.h b/ctdb/include/ctdb.h
index d6dcdd3c4f..a41e515207 100644
--- a/ctdb/include/ctdb.h
+++ b/ctdb/include/ctdb.h
@@ -182,6 +182,11 @@ int ctdb_fetch_lock(struct ctdb_db_context *ctdb_db, TALLOC_CTX *mem_ctx, TDB_DA
/*
do a fetch lock from a client to the local daemon
*/
+#define FETCH_LOCK_SUCCESS 0
+#define FETCH_LOCK_LOCKFAILED 1
+#define FETCH_LOCK_FETCHFAILED 2
+#define FETCH_LOCK_DMASTERFAILED 3
+
int ctdb_client_fetch_lock(struct ctdb_db_context *ctdb_db,
TALLOC_CTX *mem_ctx,
TDB_DATA key, TDB_DATA *data);