Revert "null out the pointer before we reload the nodes file"
authorMartin Schwenke <martin@meltin.net>
Mon, 14 Oct 2013 01:50:08 +0000 (12:50 +1100)
committerAmitay Isaacs <amitay@gmail.com>
Tue, 22 Oct 2013 03:34:03 +0000 (14:34 +1100)
This reverts commit 4b0f32047e8bece0a052bdbe2209afe91b7e8ce3.

This is not necessary.  It just causes a memory leak.

Signed-off-by: Martin Schwenke <martin@meltin.net>
server/ctdb_recoverd.c

index 381e998fb6b143034ec66626ebc45f35de8a0b6b..d0c1dae659dafd5d001ca1fa7a4de93ca01fa73d 100644 (file)
@@ -1486,7 +1486,7 @@ static int recover_database(struct ctdb_recoverd *rec,
 */
 static void reload_nodes_file(struct ctdb_context *ctdb)
 {
-       ctdb->nodes = NULL;
+
        ctdb_load_nodes_file(ctdb);
 }