diff options
author | Andrew Tridgell <tridge@samba.org> | 2007-01-29 11:31:24 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:44:25 -0500 |
commit | ef219698199883858a528b11148fe7c00c02b860 (patch) | |
tree | c0776768da8f880e1808fd2cd27b472fb9d83ada /source4/cluster/ctdb/include | |
parent | e46d128bb598dd8b460c8f6ad0236748f9da47bb (diff) | |
download | samba-ef219698199883858a528b11148fe7c00c02b860.tar.gz samba-ef219698199883858a528b11148fe7c00c02b860.tar.bz2 samba-ef219698199883858a528b11148fe7c00c02b860.zip |
r21045: every call in brlock_ctdb ended up neededing a 32 bit status code, so
rather than allocating a reply_data field each time, I have changed
the ctdb_call API to include a status code. That greatly simplifies
use of the API.
(This used to be commit 70c3acaf8876fa5712e2135df234fe3bc1e32e77)
Diffstat (limited to 'source4/cluster/ctdb/include')
-rw-r--r-- | source4/cluster/ctdb/include/ctdb.h | 2 | ||||
-rw-r--r-- | source4/cluster/ctdb/include/ctdb_private.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/source4/cluster/ctdb/include/ctdb.h b/source4/cluster/ctdb/include/ctdb.h index 8a2006f678..7eebcb83db 100644 --- a/source4/cluster/ctdb/include/ctdb.h +++ b/source4/cluster/ctdb/include/ctdb.h @@ -26,6 +26,7 @@ struct ctdb_call { TDB_DATA key; TDB_DATA call_data; TDB_DATA reply_data; + uint32_t status; }; /* @@ -37,6 +38,7 @@ struct ctdb_call_info { TDB_DATA *new_data; /* optionally updated record data */ TDB_DATA *call_data; /* optionally passed from caller */ TDB_DATA *reply_data; /* optionally returned by function */ + uint32_t status; /* optional reply status - defaults to zero */ }; #define CTDB_ERR_INVALID 1 diff --git a/source4/cluster/ctdb/include/ctdb_private.h b/source4/cluster/ctdb/include/ctdb_private.h index db7da8fcaf..977206f400 100644 --- a/source4/cluster/ctdb/include/ctdb_private.h +++ b/source4/cluster/ctdb/include/ctdb_private.h @@ -162,6 +162,7 @@ struct ctdb_req_call { struct ctdb_reply_call { struct ctdb_req_header hdr; + uint32_t status; uint32_t datalen; uint8_t data[1]; }; |