From b51d85fb3fde03273d549b9534600fbf31df86e9 Mon Sep 17 00:00:00 2001 From: Nysal Jan Date: Tue, 9 Oct 2007 18:00:01 +0000 Subject: [PATCH] Fix assertion failure "assert( 0 == btl_endpoint->endpoint_cache_length )" while executing mt_coll testcase. This commit was SVN r16408. --- ompi/mca/btl/tcp/btl_tcp_endpoint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ompi/mca/btl/tcp/btl_tcp_endpoint.c b/ompi/mca/btl/tcp/btl_tcp_endpoint.c index 285a1bfda2..386d592a87 100644 --- a/ompi/mca/btl/tcp/btl_tcp_endpoint.c +++ b/ompi/mca/btl/tcp/btl_tcp_endpoint.c @@ -690,10 +690,10 @@ static void mca_btl_tcp_endpoint_recv_handler(int sd, short flags, void* user) #endif /* MCA_BTL_TCP_ENDPOINT_CACHE */ MCA_BTL_TCP_FRAG_RETURN(frag); } - OPAL_THREAD_UNLOCK(&btl_endpoint->endpoint_recv_lock); #if MCA_BTL_TCP_ENDPOINT_CACHE assert( 0 == btl_endpoint->endpoint_cache_length ); #endif /* MCA_BTL_TCP_ENDPOINT_CACHE */ + OPAL_THREAD_UNLOCK(&btl_endpoint->endpoint_recv_lock); break; } case MCA_BTL_TCP_SHUTDOWN: