summaryrefslogtreecommitdiffstats
path: root/ctdb/include/ctdb_protocol.h
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronniesahlberg@gmail.com>2011-07-20 11:27:05 +1000
committerRonnie Sahlberg <ronniesahlberg@gmail.com>2011-08-23 10:06:59 +1000
commit00a870f759f8d387dec48d2651540a838f78766c (patch)
tree4c29e98146086254094574a524d04ab518abca1e /ctdb/include/ctdb_protocol.h
parent1cf1670f0a78aa30f0f177b3a7c012543edae87b (diff)
downloadsamba-00a870f759f8d387dec48d2651540a838f78766c.tar.gz
samba-00a870f759f8d387dec48d2651540a838f78766c.tar.xz
samba-00a870f759f8d387dec48d2651540a838f78766c.zip
ReadOnly records: Add a new RPC function FETCH_WITH_HEADER.
This function differs from the old FETCH in that this function will also fetch the record header and not just the record data (This used to be ctdb commit c7196d16e8e03bb2a64be164d15a7502300eae0e)
Diffstat (limited to 'ctdb/include/ctdb_protocol.h')
-rw-r--r--ctdb/include/ctdb_protocol.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/ctdb/include/ctdb_protocol.h b/ctdb/include/ctdb_protocol.h
index 0422afeb7b..b805182b6f 100644
--- a/ctdb/include/ctdb_protocol.h
+++ b/ctdb/include/ctdb_protocol.h
@@ -30,8 +30,9 @@
#define CTDB_DS_ALIGNMENT 8
-#define CTDB_NULL_FUNC 0xFF000001
-#define CTDB_FETCH_FUNC 0xFF000002
+#define CTDB_NULL_FUNC 0xFF000001
+#define CTDB_FETCH_FUNC 0xFF000002
+#define CTDB_FETCH_WITH_HEADER_FUNC 0xFF000003
struct ctdb_call {
@@ -50,6 +51,7 @@ struct ctdb_call {
*/
struct ctdb_call_info {
TDB_DATA key; /* record key */
+ struct ctdb_ltdb_header *header;
TDB_DATA record_data; /* current data in the record */
TDB_DATA *new_data; /* optionally updated record data */
TDB_DATA *call_data; /* optionally passed from caller */