mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-07-27 07:24:01 +00:00
quorumtool: drop redundant init calls to votequorum
this is taken care of in initall Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com> Reviewed-by: Steven Dake <sdake@redhat.com>
This commit is contained in:
parent
272e19c963
commit
ec7609ab85
@ -201,11 +201,6 @@ static int set_votes(uint32_t nodeid, int votes)
|
||||
{
|
||||
int err;
|
||||
|
||||
if ((err=votequorum_initialize(&v_handle, &v_callbacks)) != CS_OK) {
|
||||
fprintf(stderr, "votequorum_initialize FAILED: %d, this is probably a configuration error\n", err);
|
||||
return err;
|
||||
}
|
||||
|
||||
if ((err=votequorum_setvotes(v_handle, nodeid, votes)) != CS_OK) {
|
||||
fprintf(stderr, "set votes FAILED: %d\n", err);
|
||||
}
|
||||
@ -217,11 +212,6 @@ static int set_expected(int expected_votes)
|
||||
{
|
||||
int err;
|
||||
|
||||
if ((err=votequorum_initialize(&v_handle, &v_callbacks)) != CS_OK) {
|
||||
fprintf(stderr, "votequorum_initialize FAILED: %d, this is probably a configuration error\n", err);
|
||||
return err;
|
||||
}
|
||||
|
||||
if ((err=votequorum_setexpected(v_handle, expected_votes)) != CS_OK) {
|
||||
fprintf(stderr, "set expected votes FAILED: %d\n", err);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user