Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
int32_t ctdb_control_wipe_database(struct ctdb_context *ctdb, TDB_DATA indata);
bool ctdb_db_frozen(struct ctdb_db_context *ctdb_db);
-bool ctdb_db_prio_frozen(struct ctdb_context *ctdb, uint32_t priority);
bool ctdb_db_all_frozen(struct ctdb_context *ctdb);
/* from server/ctdb_keepalive.c */
return true;
}
-bool ctdb_db_prio_frozen(struct ctdb_context *ctdb, uint32_t priority)
-{
- if (priority == 0) {
- priority = 1;
- }
- if (priority > NUM_DB_PRIORITIES) {
- DEBUG(DEBUG_ERR, ("Invalid DB priority specified\n"));
- return false;
- }
-
- if (ctdb->freeze_mode != CTDB_FREEZE_FROZEN) {
- return false;
- }
-
- return true;
-}
-
bool ctdb_db_all_frozen(struct ctdb_context *ctdb)
{
if (ctdb->freeze_mode != CTDB_FREEZE_FROZEN) {