[sheepdog] [PATCH] remove the duplicate `if` statement
Hitoshi Mitake
mitake.hitoshi at gmail.com
Thu Dec 18 14:05:43 CET 2014
At Thu, 18 Dec 2014 20:46:41 +0800,
Xiaolong Xu wrote:
>
> ---
> sheep/gateway.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
Applied with a trivial cosmetic change, thanks.
Hitoshi
>
> diff --git a/sheep/gateway.c b/sheep/gateway.c
> index 408660a..d238f96 100644
> --- a/sheep/gateway.c
> +++ b/sheep/gateway.c
> @@ -681,10 +681,9 @@ int gateway_write_obj(struct request *req)
> if (!bypass_object_cache(req))
> return object_cache_handle_request(req);
>
> - if (is_data_vid_update(hdr))
> - invalidate_other_nodes(oid_to_vid(oid));
>
> if (is_data_vid_update(hdr)) {
> + invalidate_other_nodes(oid_to_vid(oid));
> size_t nr_vids = hdr->data_length / sizeof(*vids);
>
> /* read the previous vids to discard their references later */
> --
> 1.9.3 (Apple Git-50)
>
> --
> sheepdog mailing list
> sheepdog at lists.wpkg.org
> http://lists.wpkg.org/mailman/listinfo/sheepdog
More information about the sheepdog
mailing list