ctdb-freeze: Remove ctdb_db_prio_frozen() function
authorAmitay Isaacs <amitay@gmail.com>
Tue, 19 Jul 2016 06:56:15 +0000 (16:56 +1000)
committerAmitay Isaacs <amitay@samba.org>
Mon, 25 Jul 2016 19:29:43 +0000 (21:29 +0200)
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/include/ctdb_private.h
ctdb/server/ctdb_freeze.c

index 0cdd1e248ff826aca38861072c10951cde971124..f646a5db1570b2e6c7763a7874c999e19d90836f 100644 (file)
@@ -675,7 +675,6 @@ int32_t ctdb_control_transaction_commit(struct ctdb_context *ctdb, uint32_t id);
 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 */
index ec53ac5b63f7b7b33ce99deb567ab6e93aa95cd0..f198652065af63220f649305ab1acea36183ad06 100644 (file)
@@ -967,23 +967,6 @@ bool ctdb_db_frozen(struct ctdb_db_context *ctdb_db)
        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) {