From e0fa182d9362537f7081e215250ce2052a9a34c8 Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Tue, 15 Sep 2015 14:01:49 +1000 Subject: [PATCH] ctdb-daemon: Use database specific freeze check routine Signed-off-by: Amitay Isaacs Reviewed-by: Martin Schwenke --- ctdb/server/ctdb_recover.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ctdb/server/ctdb_recover.c b/ctdb/server/ctdb_recover.c index 0df7f58902d..f869252ac18 100644 --- a/ctdb/server/ctdb_recover.c +++ b/ctdb/server/ctdb_recover.c @@ -249,7 +249,7 @@ int32_t ctdb_control_pull_db(struct ctdb_context *ctdb, TDB_DATA indata, TDB_DAT return -1; } - if (!ctdb_db_prio_frozen(ctdb, ctdb_db->priority)) { + if (!ctdb_db_frozen(ctdb_db)) { DEBUG(DEBUG_DEBUG,("rejecting ctdb_control_pull_db when not frozen\n")); return -1; } @@ -321,7 +321,7 @@ int32_t ctdb_control_push_db(struct ctdb_context *ctdb, TDB_DATA indata) return -1; } - if (!ctdb_db_prio_frozen(ctdb, ctdb_db->priority)) { + if (!ctdb_db_frozen(ctdb_db)) { DEBUG(DEBUG_DEBUG,("rejecting ctdb_control_push_db when not frozen\n")); return -1; }