summaryrefslogtreecommitdiffstats
path: root/ctdb/include
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2008-08-08 09:58:49 +1000
committerAndrew Tridgell <tridge@samba.org>2008-08-08 09:58:49 +1000
commit5a0249d34cbca77b6ce0ea7e1b8fdc91d336ec2f (patch)
tree0956e8d39a13efe2c6abed01b790aeadad4fa401 /ctdb/include
parent66d154ef5f4379e0ac250639993e027f1123a2ad (diff)
downloadsamba-5a0249d34cbca77b6ce0ea7e1b8fdc91d336ec2f.tar.gz
samba-5a0249d34cbca77b6ce0ea7e1b8fdc91d336ec2f.tar.xz
samba-5a0249d34cbca77b6ce0ea7e1b8fdc91d336ec2f.zip
return a more detailed error code from a trans2 commit error
(This used to be ctdb commit 6915661a460cd589b441ac7cd8695f35c4e83113)
Diffstat (limited to 'ctdb/include')
-rw-r--r--ctdb/include/ctdb_private.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h
index ff4d271794..6cc1dc9f9c 100644
--- a/ctdb/include/ctdb_private.h
+++ b/ctdb/include/ctdb_private.h
@@ -789,6 +789,16 @@ struct ctdb_req_keepalive {
struct ctdb_req_header hdr;
};
+
+/* types of failures possible from TRANS2_COMMIT */
+enum ctdb_trans2_commit_error {
+ CTDB_TRANS2_COMMIT_SUCCESS=0, /* all nodes committed successfully */
+ CTDB_TRANS2_COMMIT_TIMEOUT=1, /* at least one node timed out */
+ CTDB_TRANS2_COMMIT_ALLFAIL=2, /* all nodes failed the commit */
+ CTDB_TRANS2_COMMIT_SOMEFAIL=3 /* some nodes failed the commit, some allowed it */
+};
+
+
/* internal prototypes */
void ctdb_set_error(struct ctdb_context *ctdb, const char *fmt, ...) PRINTF_ATTRIBUTE(2,3);
void ctdb_fatal(struct ctdb_context *ctdb, const char *msg);