From 99ac60193a31438258b751e4c99c85d153ddaae5 Mon Sep 17 00:00:00 2001 From: Kaushal M Date: Tue, 15 May 2012 16:31:55 +0530 Subject: client/protocol : Changes in client3_1_getxattr() Backporting change 1d02db63ae from master. Copy args->loc to local->loc in client3_1_getxattr(). This prevents logs with "(null) (--)" in client3_1_getxattr_cbk(). Also save args->name in local->name and print it in the log as well. Also, fixes crashes caused by above patch in master. (trying to gf_strdup a NULL args->name) BUG: 812199 Change-Id: I5419f6a244de93dd1a96ac8e229be3ecdc9f456e Signed-off-by: Kaushal M Reviewed-on: http://review.gluster.com/3350 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- xlators/protocol/client/src/client.h | 1 + 1 file changed, 1 insertion(+) (limited to 'xlators/protocol/client/src/client.h') diff --git a/xlators/protocol/client/src/client.h b/xlators/protocol/client/src/client.h index bf04f942a39..64066dd0add 100644 --- a/xlators/protocol/client/src/client.h +++ b/xlators/protocol/client/src/client.h @@ -155,6 +155,7 @@ typedef struct client_local { int32_t cmd; struct list_head lock_list; pthread_mutex_t mutex; + char *name; } clnt_local_t; typedef struct client_args { -- cgit