qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v4 2/2] quorum: modify vote rules for flush oper


From: Alberto Garcia
Subject: Re: [Qemu-devel] [PATCH v4 2/2] quorum: modify vote rules for flush operation
Date: Tue, 23 Feb 2016 13:56:57 +0100
User-agent: Notmuch/0.13.2 (http://notmuchmail.org) Emacs/23.2.1 (i486-pc-linux-gnu)

On Tue 23 Feb 2016 10:01:39 AM CET, Changlong Xie wrote:
>      for (i = 0; i < s->num_children; i++) {
>          result = bdrv_co_flush(s->children[i]->bs);
> -        result_value.l = result;
> -        quorum_count_vote(&error_votes, &result_value, i);
> +        if (result) {
> +            quorum_flush_error(s->children[i]->bs->node_name, "Flush 
> failed");
> +            result_value.l = result;
> +            quorum_count_vote(&error_votes, &result_value, i);
> +        } else {
> +            success_count++;
> +        }

As I wrote on the review of patch 1/2, I would pass 'result' directly
instead of "Flush failed". Otherwise this patch looks good, thanks!

Berto



reply via email to

[Prev in Thread] Current Thread [Next in Thread]