From 61e885d0b933c8aca01f5ac09e48cd7c8e67da43 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Fri, 21 Sep 2007 13:47:40 +1000 Subject: [PATCH] when ctdb attaches to a database it broadcasts the attach to all other nodes so that the db is created on them as well when we send this broadcast we must use the correct control and not assume all databases created are of the temporary kind (This used to be ctdb commit 106f816d4a0814ca4418de051289d9fc62df7dd2) --- ctdb/server/ctdb_ltdb_server.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ctdb/server/ctdb_ltdb_server.c b/ctdb/server/ctdb_ltdb_server.c index 6232fbcae1a..862d5bb53dd 100644 --- a/ctdb/server/ctdb_ltdb_server.c +++ b/ctdb/server/ctdb_ltdb_server.c @@ -332,7 +332,9 @@ int32_t ctdb_control_db_attach(struct ctdb_context *ctdb, TDB_DATA indata, /* tell all the other nodes about this database */ ctdb_daemon_send_control(ctdb, CTDB_BROADCAST_ALL, 0, - CTDB_CONTROL_DB_ATTACH, 0, CTDB_CTRL_FLAG_NOREPLY, + persistent?CTDB_CONTROL_DB_ATTACH_PERSISTENT: + CTDB_CONTROL_DB_ATTACH, + 0, CTDB_CTRL_FLAG_NOREPLY, indata, NULL, NULL); /* success */ -- 2.47.3