Skip to content

Commit

Permalink
ctdb-recoverd: Remove unnecessary assignments of need_takeover_run
Browse files Browse the repository at this point in the history
do_takeover_run() unsets this if it succeeds.

Signed-off-by: Martin Schwenke <[email protected]>
Reviewed-by: Amitay Isaacs <[email protected]>
  • Loading branch information
martin-schwenke authored and Amitay Isaacs committed Nov 12, 2015
1 parent d608862 commit a7e8687
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ctdb/server/ctdb_recoverd.c
Original file line number Diff line number Diff line change
Expand Up @@ -4025,16 +4025,13 @@ static void main_loop(struct ctdb_context *ctdb, struct ctdb_recoverd *rec,
if (rec->need_takeover_run) {
uint32_t culprit = (uint32_t)-1;

rec->need_takeover_run = false;

/* update the list of public ips that a node can handle for
all connected nodes
*/
ret = ctdb_reload_remote_public_ips(ctdb, rec, nodemap, &culprit);
if (ret != 0) {
DEBUG(DEBUG_ERR,("Failed to read public ips from remote node %d\n",
culprit));
rec->need_takeover_run = true;
return;
}

Expand Down

0 comments on commit a7e8687

Please sign in to comment.