mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-07 11:55:10 +00:00
remove only written num_mig_target_clients field in RedsState
Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
parent
550a56b585
commit
8e1859a102
@ -118,7 +118,6 @@ struct RedsState {
|
||||
int dst_do_seamless_migrate; /* per migration. Updated after the migration handshake
|
||||
between the 2 servers */
|
||||
Ring mig_target_clients;
|
||||
int num_mig_target_clients;
|
||||
|
||||
int num_of_channels;
|
||||
Ring channels;
|
||||
|
||||
@ -1671,7 +1671,6 @@ static void reds_mig_target_client_add(RedsState *reds, RedClient *client)
|
||||
mig_client->reds = reds;
|
||||
ring_init(&mig_client->pending_links);
|
||||
ring_add(&reds->mig_target_clients, &mig_client->link);
|
||||
reds->num_mig_target_clients++;
|
||||
|
||||
}
|
||||
|
||||
@ -1709,7 +1708,6 @@ static void reds_mig_target_client_free(RedsMigTargetClient *mig_client)
|
||||
RingItem *now, *next;
|
||||
|
||||
ring_remove(&mig_client->link);
|
||||
mig_client->reds->num_mig_target_clients--;
|
||||
|
||||
RING_FOREACH_SAFE(now, next, &mig_client->pending_links) {
|
||||
RedsMigPendingLink *mig_link = SPICE_CONTAINEROF(now, RedsMigPendingLink, ring_link);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user