diff options
| -rw-r--r-- | xlators/cluster/dht/src/switch.c | 22 | 
1 files changed, 13 insertions, 9 deletions
diff --git a/xlators/cluster/dht/src/switch.c b/xlators/cluster/dht/src/switch.c index a721e4c84b4..5ec9e665731 100644 --- a/xlators/cluster/dht/src/switch.c +++ b/xlators/cluster/dht/src/switch.c @@ -308,6 +308,10 @@ switch_lookup (call_frame_t *frame, xlator_t *this,  		 */  		ret = dict_set_uint32 (local->xattr_req,  				       "trusted.glusterfs.dht", 4 * 4); +                if (ret < 0) +                        gf_log (this->name, GF_LOG_WARNING, +                                "failed to set dict value for " +                                "trusted.glusterfs.dht");  		for (i = 0; i < layout->cnt; i++) {  			subvol = layout->list[i].xlator; @@ -323,9 +327,17 @@ switch_lookup (call_frame_t *frame, xlator_t *this,          do_fresh_lookup:  		ret = dict_set_uint32 (local->xattr_req,  				       "trusted.glusterfs.dht", 4 * 4); - +                if (ret < 0) +                        gf_log (this->name, GF_LOG_WARNING, +                                "failed to set dict value for " +                                "trusted.glusterfs.dht"); +                  		ret = dict_set_uint32 (local->xattr_req,  				       "trusted.glusterfs.dht.linkto", 256); +                if (ret < 0) +                        gf_log (this->name, GF_LOG_WARNING,  +                                "failed to set dict value for "  +                                "trusted.glusterfs.dht.linkto");                  if (!hashed_subvol) {  			gf_log (this->name, GF_LOG_DEBUG, @@ -385,12 +397,8 @@ switch_create_linkfile_create_cbk (call_frame_t *frame, void *cookie,                                   struct iatt *postparent)  {  	dht_local_t  *local = NULL; -	call_frame_t *prev = NULL; -	dht_conf_t   *conf  = NULL;  	local = frame->local; -	prev  = cookie; -	conf  = this->private;  	if (op_ret == -1)  		goto err; @@ -494,12 +502,8 @@ switch_mknod_linkfile_cbk (call_frame_t *frame, void *cookie, xlator_t *this,                           struct iatt *postparent)  {  	dht_local_t  *local = NULL; -	call_frame_t *prev = NULL; -	dht_conf_t   *conf  = NULL;  	local = frame->local; -	prev  = cookie; -	conf  = this->private;  	if (op_ret >= 0) {  		STACK_WIND (frame, dht_newfile_cbk,  | 
