node_reachables++;
LGTM
--
Louis Solofrizzo
Team Storage
> "jackpot: you may have an unnecessary change record"
> -- message from "diff"
}
});
- if (!node_reachable)+ if (nodes_reachables < ctx->n_nodes / 2 + 1) {
/**
* Hmmm, we might be partitionned, or at the very least we don't have a quorum anymore.
* Time to step down!
*/
libfloat_become_follower(ctx);
- ERROR(ctx, "Sanity timeout has been reached (%d seconds), stepping down from leader position", ctx->conf.sanity_timeout);+ ERROR(ctx, "Sanity timeout has been reached (%d seconds), stepping down from leader position: reachable %d / quorum %lu (%lu)", + ctx->conf.sanity_timeout, nodes_reachables, ctx->n_nodes / 2 + 1, ctx->n_nodes); return;
}
}
--
2.25.1