From 681bfd7ff32202314a5cdf8a8e13478c6c45acdb Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Wed, 13 Oct 2010 01:38:20 +0000 Subject: server: Don't free conf in fini. - This will fix race condition between handling DISCONNECT event and doing fini. Though conf need to be freed, this will be done in future where finis of all translators are properly implemented to make sure no corruptions. Signed-off-by: Raghavendra G Signed-off-by: Anand V. Avati BUG: 1758 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1758 --- xlators/protocol/server/src/server.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xlators/protocol/server/src/server.c b/xlators/protocol/server/src/server.c index 1d190c6baf7..85abfb54d2a 100644 --- a/xlators/protocol/server/src/server.c +++ b/xlators/protocol/server/src/server.c @@ -771,6 +771,7 @@ out: void fini (xlator_t *this) { +#if 0 server_conf_t *conf = NULL; conf = this->private; @@ -794,7 +795,7 @@ fini (xlator_t *this) } this->private = NULL; - +#endif return; } -- cgit