summaryrefslogtreecommitdiffstats
path: root/xlators/cluster
diff options
context:
space:
mode:
authorshishir gowda <shishirng@gluster.com>2012-04-18 10:49:09 +0530
committerVijay Bellur <vijay@gluster.com>2012-04-18 23:42:30 -0700
commit678efee04855f88919904d98176b0d7c44e543d6 (patch)
treeba0e51f09810d92b783acd78da4804748916207f /xlators/cluster
parent1b8f254daf05f84ebc3170e7b840608fc7baf068 (diff)
cluster/dht: Remove un-used pathinfo code for link files
Currently, we do not return LINK: attributes for a file in pathinfo requests. Change-Id: If8667bd6af06de3d11c37dd0a09726dfe1d2e330 BUG: 795289 Signed-off-by: shishir gowda <shishirng@gluster.com> Reviewed-on: http://review.gluster.com/3175 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Venky Shankar <vshankar@redhat.com>
Diffstat (limited to 'xlators/cluster')
-rw-r--r--xlators/cluster/dht/src/dht-common.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c
index c017813d63e..4010004f610 100644
--- a/xlators/cluster/dht/src/dht-common.c
+++ b/xlators/cluster/dht/src/dht-common.c
@@ -1801,24 +1801,6 @@ dht_vgetxattr_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
return 0;
}
- /**
- * XXX: We will never reach here as call_cnt will always be 1.
- * But code is kept untouched as we may need it when hashed_subvol
- * bug is fixed.
- */
- if (local->xattr_val)
- strcat (local->xattr_val, " Link: ");
- if (local->hashed_subvol) {
- /* This will happen if there pending */
- STACK_WIND (frame, dht_vgetxattr_cbk, local->hashed_subvol,
- local->hashed_subvol->fops->getxattr,
- &local->loc, local->key, NULL);
-
- return 0;
- }
-
- gf_log ("this->name", GF_LOG_ERROR, "Unable to find hashed_subvol"
- " for path %s", local->xattr_val);
unwind:
DHT_STACK_UNWIND (getxattr, frame, -1, local->op_errno, NULL, NULL);
return 0;