mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 22:25:25 +00:00
qemu: Rename qemuMigrationSrcCancel
Let's call this qemuMigrationSrcCancelUnattended as the function is supposed to be used when no other thread is watching the migration. Signed-off-by: Jiri Denemark <jdenemar@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
e4f577b25e
commit
0ff8c175f7
@ -6942,8 +6942,12 @@ qemuMigrationSrcToFile(virQEMUDriver *driver, virDomainObj *vm,
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This function is supposed to be used only when no other thread is watching
|
||||
* the migration.
|
||||
*/
|
||||
int
|
||||
qemuMigrationSrcCancel(virDomainObj *vm)
|
||||
qemuMigrationSrcCancelUnattended(virDomainObj *vm)
|
||||
{
|
||||
qemuDomainObjPrivate *priv = vm->privateData;
|
||||
bool storage = false;
|
||||
|
@ -241,7 +241,7 @@ qemuMigrationSrcToFile(virQEMUDriver *driver,
|
||||
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) G_GNUC_WARN_UNUSED_RESULT;
|
||||
|
||||
int
|
||||
qemuMigrationSrcCancel(virDomainObj *vm);
|
||||
qemuMigrationSrcCancelUnattended(virDomainObj *vm);
|
||||
|
||||
int
|
||||
qemuMigrationAnyFetchStats(virDomainObj *vm,
|
||||
|
@ -3537,7 +3537,7 @@ qemuProcessRecoverMigrationOut(virQEMUDriver *driver,
|
||||
*/
|
||||
VIR_DEBUG("Cancelling unfinished migration of domain %s",
|
||||
vm->def->name);
|
||||
if (qemuMigrationSrcCancel(vm) < 0) {
|
||||
if (qemuMigrationSrcCancelUnattended(vm) < 0) {
|
||||
VIR_WARN("Could not cancel ongoing migration of domain %s",
|
||||
vm->def->name);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user