summaryrefslogtreecommitdiffstats
path: root/ctdb/include/ctdb_client.h
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronniesahlberg@gmail.com>2011-09-01 10:21:55 +1000
committerRonnie Sahlberg <ronniesahlberg@gmail.com>2011-09-01 10:21:55 +1000
commit63dc96cdb2b6dcdfed8e49c3f2f6a42ed13d1df5 (patch)
treed7963c54213fbd22540ec08516bb256e570896ea /ctdb/include/ctdb_client.h
parent7567e013370199b6b25a580e64bf3466531e0034 (diff)
downloadsamba-63dc96cdb2b6dcdfed8e49c3f2f6a42ed13d1df5.tar.gz
samba-63dc96cdb2b6dcdfed8e49c3f2f6a42ed13d1df5.tar.xz
samba-63dc96cdb2b6dcdfed8e49c3f2f6a42ed13d1df5.zip
ReadOnly: Change the ctdb_db structure to keep a uint8_t for flags instead of a boolean for
the persistent flag. This is the same size as the original boolean but allows ut to add additional flags for the database (This used to be ctdb commit 7462761638d25880ad46024ad4ef21667eb99a98)
Diffstat (limited to 'ctdb/include/ctdb_client.h')
-rw-r--r--ctdb/include/ctdb_client.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ctdb/include/ctdb_client.h b/ctdb/include/ctdb_client.h
index 720f073361..05e12c7f95 100644
--- a/ctdb/include/ctdb_client.h
+++ b/ctdb/include/ctdb_client.h
@@ -211,7 +211,8 @@ struct ctdb_dbid_map {
uint32_t num;
struct ctdb_dbid {
uint32_t dbid;
- bool persistent;
+#define CTDB_DB_FLAGS_PERSISTENT 0x01
+ uint8_t flags;
} dbs[1];
};
int ctdb_ctrl_getdbmap(struct ctdb_context *ctdb,