From d4699037f7f186790f31914505e501ce8ae61454 Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Sat, 14 Jan 2006 21:10:09 +0000 Subject: [PATCH] Protect an assert if the endpoint cache is not activated. This commit was SVN r8695. --- ompi/mca/btl/tcp/btl_tcp_endpoint.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ompi/mca/btl/tcp/btl_tcp_endpoint.c b/ompi/mca/btl/tcp/btl_tcp_endpoint.c index ee038a0a34..4b41dc8a1c 100644 --- a/ompi/mca/btl/tcp/btl_tcp_endpoint.c +++ b/ompi/mca/btl/tcp/btl_tcp_endpoint.c @@ -650,7 +650,9 @@ static void mca_btl_tcp_endpoint_recv_handler(int sd, short flags, void* user) MCA_BTL_TCP_FRAG_RETURN_MAX(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 */ break; } case MCA_BTL_TCP_SHUTDOWN: