From 65275d048bb031f93a690c69cb32bb751298c212 Mon Sep 17 00:00:00 2001 From: Mohammed Junaid Date: Fri, 11 May 2012 12:51:38 +0530 Subject: protocol/client: Concatenate the graph uuid along with process uuid in setlk_version. Change-Id: Idec06c5ef1d440864e465f008a38c86395b52aba BUG: 820831 Signed-off-by: Mohammed Junaid Reviewed-on: http://review.gluster.com/3439 Tested-by: Gluster Build System Reviewed-by: Amar Tumballi Reviewed-by: Vijay Bellur --- xlators/protocol/server/src/server-helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/protocol/server/src') diff --git a/xlators/protocol/server/src/server-helpers.c b/xlators/protocol/server/src/server-helpers.c index 51086aaf9..8827a48b0 100644 --- a/xlators/protocol/server/src/server-helpers.c +++ b/xlators/protocol/server/src/server-helpers.c @@ -687,7 +687,7 @@ server_connection_get (xlator_t *this, const char *id) pthread_mutex_lock (&conf->mutex); { list_for_each_entry (trav, &conf->conns, list) { - if (!strncmp (trav->id, id, strlen (id))) { + if (!strcmp (trav->id, id)) { conn = trav; conn->bind_ref++; goto unlock; -- cgit