aboutsummaryrefslogtreecommitdiff
path: root/pc-bios/palcode-clipper
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2016-10-27 12:48:49 +0200
committerFam Zheng <famz@redhat.com>2016-10-28 21:50:18 +0800
commit50ab0e0908d592b8bda56c2d7495e1190d734b0b (patch)
treeff0a7cbe4910852f1a7a709e2cdfeda3a20ed49c /pc-bios/palcode-clipper
parent9879b75873cacc88cdee490f6ab481e8ce766c69 (diff)
replication: interrupt failover if the main device is closed
Without this change, there is a race condition in tests/test-replication. Depending on how fast the failover job (active commit) runs, there is a chance of two bad things happening: 1) replication_done can be called after the secondary has been closed and hence when the BDRVReplicationState is not valid anymore. 2) two copies of the active disk are present during the /replication/secondary/stop test (that test runs immediately after /replication/secondary/start, which tests failover). This causes the corruption detector to fire. Reviewed-by: Wen Congyang <wency@cn.fujitsu.com> Reviewed-by: Changlong Xie <xiecl.fnst@cn.fujitsu.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Fam Zheng <famz@redhat.com> Message-Id: <1477565348-5458-2-git-send-email-pbonzini@redhat.com> Signed-off-by: Fam Zheng <famz@redhat.com>
Diffstat (limited to 'pc-bios/palcode-clipper')
0 files changed, 0 insertions, 0 deletions