Skip to content

Commit

Permalink
ctdb-takeover: Use takeover_failed() when fetching public IPs fails
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Schwenke <[email protected]>
Reviewed-by: Amitay Isaacs <[email protected]>
  • Loading branch information
martin-schwenke authored and Martin Schwenke committed Feb 24, 2017
1 parent 5b1249a commit 7f5ef12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ctdb/server/ctdb_takeover_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ static void takeover_known_ips_done(struct tevent_req *subreq)

if (! status) {
D_ERR("Failed to fetch known public IPs\n");
tevent_req_error(req, ret);
takeover_failed(req, ret);
return;
}

Expand Down Expand Up @@ -926,7 +926,7 @@ static void takeover_avail_ips_done(struct tevent_req *subreq)

if (! status) {
D_ERR("Failed to fetch available public IPs\n");
tevent_req_error(req, ret);
takeover_failed(req, ret);
return;
}

Expand Down

0 comments on commit 7f5ef12

Please sign in to comment.