ctdb-protocol: Add new control to get database open flags
authorAmitay Isaacs <amitay@gmail.com>
Wed, 14 Jun 2017 06:22:52 +0000 (16:22 +1000)
committerMartin Schwenke <martins@samba.org>
Mon, 26 Jun 2017 13:47:24 +0000 (15:47 +0200)
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/protocol/protocol.h

index 60e20b4a7c0173dff5f10eb4b17184dfefa2e681..7e9973870b1396ec11699fdaa4b6ef4a2a87a88f 100644 (file)
@@ -367,6 +367,7 @@ enum ctdb_controls {CTDB_CONTROL_PROCESS_EXISTS          = 0,
                    CTDB_CONTROL_DB_PULL                 = 146,
                    CTDB_CONTROL_DB_PUSH_START           = 147,
                    CTDB_CONTROL_DB_PUSH_CONFIRM         = 148,
+                   CTDB_CONTROL_DB_OPEN_FLAGS           = 149,
 };
 
 #define CTDB_MONITORING_ENABLED                0
@@ -911,6 +912,7 @@ struct ctdb_reply_control_data {
                struct ctdb_db_statistics *dbstats;
                enum ctdb_runstate runstate;
                uint32_t num_records;
+               int tdb_flags;
        } data;
 };