diff options
| author | Lukas Straub | 2020-05-11 09:08:01 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2020-05-18 19:05:25 +0200 |
| commit | e140f4b7b8c0fdda866ba3d8b4aa184b6ba6d6b8 (patch) | |
| tree | 9b72a7f2703fa404d4a63cac58fa69bdd1aaa4c1 /tests | |
| parent | iotests: Mirror with different source/target size (diff) | |
| download | qemu-e140f4b7b8c0fdda866ba3d8b4aa184b6ba6d6b8.tar.gz qemu-e140f4b7b8c0fdda866ba3d8b4aa184b6ba6d6b8.tar.xz qemu-e140f4b7b8c0fdda866ba3d8b4aa184b6ba6d6b8.zip | |
block/replication.c: Avoid cancelling the job twice
If qemu in colo secondary mode is stopped, it crashes because
s->backup_job is canceled twice: First with job_cancel_sync_all()
in qemu_cleanup() and then in replication_stop().
Fix this by assigning NULL to s->backup_job when the job completes
so replication_stop() and replication_do_checkpoint() won't touch
the job.
Signed-off-by: Lukas Straub <lukasstraub2@web.de>
Message-Id: <20200511090801.7ed5d8f3@luklap>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions
