ctdb-recovery: Use correct struct ban_node_state type for state
authorChristof Schmitt <cs@samba.org>
Tue, 2 May 2023 19:17:56 +0000 (12:17 -0700)
committerVolker Lendecke <vl@samba.org>
Wed, 3 May 2023 08:04:09 +0000 (08:04 +0000)
If this codepath is hit, ctdb aborts with:

ctdb/server/ctdb_recovery_helper.c:2687: Type mismatch: name[struct ban_node_state] expected[struct node_ban_state]")
    at ../../lib/talloc/talloc.c:505

Fix this by using the correct type.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Wed May  3 08:04:09 UTC 2023 on atb-devel-224

ctdb/server/ctdb_recovery_helper.c

index f3576474144ca94d1588daee7d00761239832e40..4df48417c7a8bbe4a7f91c9c708cb1c9f29eb686 100644 (file)
@@ -2327,8 +2327,8 @@ static void ban_node_done(struct tevent_req *subreq)
 {
        struct tevent_req *req = tevent_req_callback_data(
                subreq, struct tevent_req);
-       struct node_ban_state *state = tevent_req_data(
-               req, struct node_ban_state);
+       struct ban_node_state *state = tevent_req_data(
+               req, struct ban_node_state);
        struct ctdb_reply_control *reply;
        int ret;
        bool status;