From 678efee04855f88919904d98176b0d7c44e543d6 Mon Sep 17 00:00:00 2001 From: shishir gowda Date: Wed, 18 Apr 2012 10:49:09 +0530 Subject: 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 Reviewed-on: http://review.gluster.com/3175 Tested-by: Gluster Build System Reviewed-by: Venky Shankar --- xlators/cluster/dht/src/dht-common.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c index c017813d6..4010004f6 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; -- cgit