aboutsummaryrefslogtreecommitdiff
path: root/migration
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2023-05-30 20:39:23 +0200
committerJuan Quintela <quintela@redhat.com>2023-07-26 10:55:56 +0200
commitcf786549ce6e8d775fbc8ebe06759d59fc709f08 (patch)
treefdc7ef39c17e8cbbf4ea05ee270392aaa989fb00 /migration
parentfc95c63b603221b3bdedc544a39030fbea3f47a4 (diff)
downloadqemu-cf786549ce6e8d775fbc8ebe06759d59fc709f08.zip
qemu-cf786549ce6e8d775fbc8ebe06759d59fc709f08.tar.gz
qemu-cf786549ce6e8d775fbc8ebe06759d59fc709f08.tar.bz2
migration: Change qemu_file_transferred to noflush
We do a qemu_fclose() just after that, that also does a qemu_fflush(), so remove one qemu_fflush(). Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20230530183941.7223-3-quintela@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'migration')
-rw-r--r--migration/savevm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/migration/savevm.c b/migration/savevm.c
index 0b2583a..a2cb885 100644
--- a/migration/savevm.c
+++ b/migration/savevm.c
@@ -3007,7 +3007,7 @@ bool save_snapshot(const char *name, bool overwrite, const char *vmstate,
goto the_end;
}
ret = qemu_savevm_state(f, errp);
- vm_state_size = qemu_file_transferred(f);
+ vm_state_size = qemu_file_transferred_noflush(f);
ret2 = qemu_fclose(f);
if (ret < 0) {
goto the_end;