mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 22:55:23 +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
|
int
|
||||||
qemuMigrationSrcCancel(virDomainObj *vm)
|
qemuMigrationSrcCancelUnattended(virDomainObj *vm)
|
||||||
{
|
{
|
||||||
qemuDomainObjPrivate *priv = vm->privateData;
|
qemuDomainObjPrivate *priv = vm->privateData;
|
||||||
bool storage = false;
|
bool storage = false;
|
||||||
|
@ -241,7 +241,7 @@ qemuMigrationSrcToFile(virQEMUDriver *driver,
|
|||||||
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) G_GNUC_WARN_UNUSED_RESULT;
|
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) G_GNUC_WARN_UNUSED_RESULT;
|
||||||
|
|
||||||
int
|
int
|
||||||
qemuMigrationSrcCancel(virDomainObj *vm);
|
qemuMigrationSrcCancelUnattended(virDomainObj *vm);
|
||||||
|
|
||||||
int
|
int
|
||||||
qemuMigrationAnyFetchStats(virDomainObj *vm,
|
qemuMigrationAnyFetchStats(virDomainObj *vm,
|
||||||
|
@ -3537,7 +3537,7 @@ qemuProcessRecoverMigrationOut(virQEMUDriver *driver,
|
|||||||
*/
|
*/
|
||||||
VIR_DEBUG("Cancelling unfinished migration of domain %s",
|
VIR_DEBUG("Cancelling unfinished migration of domain %s",
|
||||||
vm->def->name);
|
vm->def->name);
|
||||||
if (qemuMigrationSrcCancel(vm) < 0) {
|
if (qemuMigrationSrcCancelUnattended(vm) < 0) {
|
||||||
VIR_WARN("Could not cancel ongoing migration of domain %s",
|
VIR_WARN("Could not cancel ongoing migration of domain %s",
|
||||||
vm->def->name);
|
vm->def->name);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user