diff options
author | Krishnan Parthasarathi <kparthas@redhat.com> | 2015-01-08 09:43:50 +0530 |
---|---|---|
committer | Raghavendra G <rgowdapp@redhat.com> | 2015-01-15 00:06:34 -0800 |
commit | c4561b6fd90c52667eebec9eecf974b4c0786382 (patch) | |
tree | e9df8ca31bd71051adfddde44cc7fec544675469 /xlators/protocol | |
parent | e9c90da38e1b6fb7fc4e0d5d1e987c510d1c17d6 (diff) |
rpc: initialise transport's list on creation
Initialising the transport's list, meant to hold clients connected to
it, on the first connection event is prone to race, especially with the
introduction of multi-threaded event layer.
BUG: 1181203
Change-Id: I6a20686a2012c1f49a279cc9cd55a03b8c7615fc
Signed-off-by: Krishnan Parthasarathi <kparthas@redhat.com>
Reviewed-on: http://review.gluster.org/9413
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
Tested-by: Raghavendra G <rgowdapp@redhat.com>
Diffstat (limited to 'xlators/protocol')
-rw-r--r-- | xlators/protocol/server/src/server.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/xlators/protocol/server/src/server.c b/xlators/protocol/server/src/server.c index 0dfe19a16b4..4cd2353f1b0 100644 --- a/xlators/protocol/server/src/server.c +++ b/xlators/protocol/server/src/server.c @@ -495,7 +495,6 @@ server_rpc_notify (rpcsvc_t *rpc, void *xl, rpcsvc_event_t event, trans->protocol_private = client->conn; */ - INIT_LIST_HEAD (&trans->list); pthread_mutex_lock (&conf->mutex); { |