]> Git Repo - qemu.git/commitdiff
migration/savevm: flush file for iterable_only case
authorWei Yang <[email protected]>
Tue, 9 Jul 2019 14:09:22 +0000 (22:09 +0800)
committerDr. David Alan Gilbert <[email protected]>
Wed, 14 Aug 2019 16:33:14 +0000 (17:33 +0100)
It would be proper to flush file even for iterable_only case.

Signed-off-by: Wei Yang <[email protected]>
Message-Id: <20190709140924[email protected]>
Reviewed-by: Dr. David Alan Gilbert <[email protected]>
Signed-off-by: Dr. David Alan Gilbert <[email protected]>
migration/savevm.c

index a2a5f89b751ca5ada801e935d65f44eab178a8f4..0bfdceefcca7e7ee8f0b815499e5af8097419ccf 100644 (file)
@@ -1292,7 +1292,7 @@ int qemu_savevm_state_complete_precopy(QEMUFile *f, bool iterable_only,
     }
 
     if (iterable_only) {
-        return 0;
+        goto flush;
     }
 
     vmdesc = qjson_new();
@@ -1353,6 +1353,7 @@ int qemu_savevm_state_complete_precopy(QEMUFile *f, bool iterable_only,
     }
     qjson_destroy(vmdesc);
 
+flush:
     qemu_fflush(f);
     return 0;
 }
This page took 0.025794 seconds and 4 git commands to generate.