summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorPoornima G <pgurusid@redhat.com>2017-04-13 16:44:44 +0530
committerVijay Bellur <vbellur@redhat.com>2017-04-13 11:57:44 -0400
commitaf218797fa98f2f75594fc9ae595f184682f1a0d (patch)
tree56381f9ad7d0bd41179932187a192bfc16adf5b3 /xlators
parentc2ea4463ab4ce04936a824f7e8c7c133aabe1381 (diff)
dht: Add missing braces in dht_opendir
Change-Id: I6adce98f52e17953f501bc590ff7189cceac3c31 BUG: 1431908 Signed-off-by: Poornima G <pgurusid@redhat.com> 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>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/cluster/dht/src/dht-common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c
index a0302b67dfe..ba082e28956 100644
--- a/xlators/cluster/dht/src/dht-common.c
+++ b/xlators/cluster/dht/src/dht-common.c
@@ -4916,7 +4916,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)
@@ -4925,6 +4925,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,