migration/colo.c: Move colo_notify_compares_event to the right place
commit4fa8ed25b8dc996d92c60fb6b63752593be5f3a4
authorLukas Straub <lukasstraub2@web.de>
Mon, 11 May 2020 11:11:01 +0000 (11 13:11 +0200)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Mon, 1 Jun 2020 17:44:27 +0000 (1 18:44 +0100)
treeae9fc5a0d912cd078fbb86a700db8aca4a2d2fe3
parent92c932de6c4a2b25826201e9d0740207136953c6
migration/colo.c: Move colo_notify_compares_event to the right place

If the secondary has to failover during checkpointing, it still is
in the old state (i.e. different state than primary). Thus we can't
expose the primary state until after the checkpoint is sent.

This fixes sporadic connection reset of client connections during
failover.

Signed-off-by: Lukas Straub <lukasstraub2@web.de>
Message-Id: <d4555dd5146a54518c4d9d4efd996b7c745c6687.1589193382.git.lukasstraub2@web.de>
Reviewed-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
migration/colo.c