Dont allow client processes to attach to databases while we are still in recovery...
[sahlberg/ctdb.git] / include / ctdb_private.h
index 6e5c46365a991a4fdcc923b5ff3ce141a95eec1a..5a1c15b1827419dfd19b3dbd8d7f8f172fbe6512 100644 (file)
@@ -507,6 +507,7 @@ struct ctdb_db_context {
        struct ctdb_vacuum_handle *vacuum_handle;
        char *unhealthy_reason;
        int pending_requests;
+       struct lockwait_handle *lockwait_active;
        struct lockwait_handle *lockwait_overflow;
 };
 
@@ -798,7 +799,7 @@ int ctdb_daemon_send_control(struct ctdb_context *ctdb, uint32_t destnode,
                             void *private_data);
 
 int32_t ctdb_control_db_attach(struct ctdb_context *ctdb, TDB_DATA indata, 
-                              TDB_DATA *outdata, uint64_t tdb_flags, bool persistent);
+                              TDB_DATA *outdata, uint64_t tdb_flags, bool persistent, uint32_t client_id);
 
 int ctdb_daemon_set_call(struct ctdb_context *ctdb, uint32_t db_id,
                         ctdb_fn_t fn, int id);