Skip to content

Commit

Permalink
migration: Add buffered_flush error handling
Browse files Browse the repository at this point in the history
Now that we have error handling we can do proper handling of
buffered_flush().

Signed-off-by: Juan Quintela <quintela@redhat.com>

Reviewed-by: Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
Juan Quintela committed Jan 17, 2013
1 parent 76f5933 commit f7b67be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion migration.c
Expand Up @@ -757,7 +757,8 @@ static void *buffered_file_thread(void *opaque)
/* usleep expects microseconds */
g_usleep((initial_time + BUFFER_DELAY - current_time)*1000);
}
if (buffered_flush(s) < 0) {
ret = buffered_flush(s);
if (ret < 0) {
break;
}

Expand Down

0 comments on commit f7b67be

Please sign in to comment.