Blob Blame History Raw
From 681d103e9b9639899026e753d0c9022aaa41470b Mon Sep 17 00:00:00 2001
From: Poornima G <pgurusid@redhat.com>
Date: Thu, 13 Apr 2017 16:44:44 +0530
Subject: [PATCH 381/393] dht: Add missing braces in dht_opendir

> Reviewed-on: https://review.gluster.org/17057
> Smoke: Gluster Build System <jenkins@build.gluster.org>
> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
> CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
> Signed-off-by: Poornima G <pgurusid@redhat.com>

Change-Id: I6adce98f52e17953f501bc590ff7189cceac3c31
BUG: 1427096
Signed-off-by: Poornima G <pgurusid@redhat.com>
Reviewed-on: https://code.engineering.redhat.com/gerrit/103635
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
---
 xlators/cluster/dht/src/dht-common.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c
index 9533940..1235467 100644
--- a/xlators/cluster/dht/src/dht-common.c
+++ b/xlators/cluster/dht/src/dht-common.c
@@ -4902,7 +4902,7 @@ dht_opendir (call_frame_t *frame, xlator_t *this, loc_t *loc, fd_t *fd,
 
         for (i = 0; i < call_count; i++) {
                 if (conf->readdir_optimize == _gf_true) {
-                        if (subvolumes[i] != local->first_up_subvol)
+                        if (subvolumes[i] != local->first_up_subvol) {
                                 ret = dict_set_int32 (xdata,
                                                       GF_READDIR_SKIP_DIRS, 1);
                                 if (ret)
@@ -4911,6 +4911,7 @@ dht_opendir (call_frame_t *frame, xlator_t *this, loc_t *loc, fd_t *fd,
                                                 "Failed to set dictionary"
                                                 " value :key = %s, ret:%d",
                                                 GF_READDIR_SKIP_DIRS, ret);
+                                }
                 }
 
                 STACK_WIND_COOKIE (frame, dht_fd_cbk,
-- 
1.8.3.1