ctdb-recoverd: Fix typo in previous fix
authorMartin Schwenke <martin@meltin.net>
Tue, 27 Aug 2019 02:13:51 +0000 (12:13 +1000)
committerKarolin Seeger <kseeger@samba.org>
Wed, 4 Sep 2019 08:31:23 +0000 (08:31 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14085

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Tue Aug 27 15:29:11 UTC 2019 on sn-devel-184

(cherry picked from commit 8190993d99284162bd8699780248bb2edfec2673)

ctdb/server/ctdb_recoverd.c

index a190d0c99859b1a14760c0c85dbdf9d43fb59d4b..3d5b727715a301110c0990f293351b6cca8af088 100644 (file)
@@ -2998,7 +2998,7 @@ static void main_loop(struct ctdb_context *ctdb, struct ctdb_recoverd *rec,
                        continue;
                }
                if (! ctdb_node_has_capabilities(rec->caps,
-                                                ctdb->nodes[j]->pnn,
+                                                nodemap->nodes[j].pnn,
                                                 CTDB_CAP_LMASTER)) {
                        continue;
                }