1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

ctdb-daemon: Use database specific freeze check routine

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
Amitay Isaacs 2015-09-15 14:01:49 +10:00 committed by Amitay Isaacs
parent e170bd4f1b
commit e0fa182d93

View File

@ -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;
}