mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-08-04 11:05:24 +00:00
SYNC: remove unused primary_designated from sync_primary_callback_fn()
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2990 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
parent
b8878d2e76
commit
e43e760dde
@ -134,7 +134,6 @@ static void sync_confchg_fn (
|
||||
static void sync_primary_callback_fn (
|
||||
const unsigned int *view_list,
|
||||
size_t view_list_entries,
|
||||
int primary_designated,
|
||||
const struct memb_ring_id *ring_id);
|
||||
|
||||
|
||||
@ -321,17 +320,10 @@ int sync_register (
|
||||
static void sync_primary_callback_fn (
|
||||
const unsigned int *view_list,
|
||||
size_t view_list_entries,
|
||||
int primary_designated,
|
||||
const struct memb_ring_id *ring_id)
|
||||
{
|
||||
int i;
|
||||
|
||||
if (primary_designated) {
|
||||
log_printf (LOGSYS_LEVEL_DEBUG, "This node is within the primary component and will provide service.\n");
|
||||
} else {
|
||||
log_printf (LOGSYS_LEVEL_DEBUG, "This node is within the non-primary component and will NOT provide any services.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* Execute configuration change for synchronization service
|
||||
@ -491,6 +483,5 @@ static void sync_confchg_fn (
|
||||
sync_primary_callback_fn (
|
||||
member_list,
|
||||
member_list_entries,
|
||||
1,
|
||||
ring_id);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user