summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2014-06-10 12:17:32 +1000
committerMartin Schwenke <martins@samba.org>2014-06-12 05:40:11 +0200
commite9eed41d7ffded2dfd1406f60ad08fe070fd52c1 (patch)
tree2550a9a7ced4ac23235b4a23dd94ce771f60fb46
parent79a6bd269291a4b4dabc57254b79bbfa82ac70e4 (diff)
downloadsamba-e9eed41d7ffded2dfd1406f60ad08fe070fd52c1.zip
samba-e9eed41d7ffded2dfd1406f60ad08fe070fd52c1.tar.gz
samba-e9eed41d7ffded2dfd1406f60ad08fe070fd52c1.tar.xz
ctdb-daemon: Do not complain if node is inactive and db is not attached
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
-rw-r--r--ctdb/server/ctdb_ltdb_server.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ctdb/server/ctdb_ltdb_server.c b/ctdb/server/ctdb_ltdb_server.c
index 02fd3a5..7738f76 100644
--- a/ctdb/server/ctdb_ltdb_server.c
+++ b/ctdb/server/ctdb_ltdb_server.c
@@ -1527,7 +1527,10 @@ int32_t ctdb_control_set_db_priority(struct ctdb_context *ctdb, TDB_DATA indata,
ctdb_db = find_ctdb_db(ctdb, db_prio->db_id);
if (!ctdb_db) {
- DEBUG(DEBUG_ERR,("Unknown db_id 0x%x in ctdb_set_db_priority\n", db_prio->db_id));
+ if (!(ctdb->nodes[ctdb->pnn]->flags & NODE_FLAGS_INACTIVE)) {
+ DEBUG(DEBUG_ERR,("Unknown db_id 0x%x in ctdb_set_db_priority\n",
+ db_prio->db_id));
+ }
return 0;
}