migration/savevm: flush file for iterable_only case
It would be proper to flush file even for iterable_only case. Signed-off-by: Wei Yang <richardw.yang@linux.intel.com> Message-Id: <20190709140924.13291-2-richardw.yang@linux.intel.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
This commit is contained in:
parent
8996604fe6
commit
4e455d51ef
@ -1292,7 +1292,7 @@ int qemu_savevm_state_complete_precopy(QEMUFile *f, bool iterable_only,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (iterable_only) {
|
if (iterable_only) {
|
||||||
return 0;
|
goto flush;
|
||||||
}
|
}
|
||||||
|
|
||||||
vmdesc = qjson_new();
|
vmdesc = qjson_new();
|
||||||
@ -1353,6 +1353,7 @@ int qemu_savevm_state_complete_precopy(QEMUFile *f, bool iterable_only,
|
|||||||
}
|
}
|
||||||
qjson_destroy(vmdesc);
|
qjson_destroy(vmdesc);
|
||||||
|
|
||||||
|
flush:
|
||||||
qemu_fflush(f);
|
qemu_fflush(f);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user