From 3472d19d4dd06753101dbfe87df677d5d62e6ace Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Fri, 27 Oct 2006 23:03:15 +0000 Subject: [PATCH] Do not modify the convertor if there is no data to be send across the network. The req_bytes_packed field is initialized in the BASE_INIT macro, so it is set for all requests at this stage. This commit was SVN r12342. --- ompi/mca/pml/ob1/pml_ob1_start.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ompi/mca/pml/ob1/pml_ob1_start.c b/ompi/mca/pml/ob1/pml_ob1_start.c index 5e3304edd5..724aea8cd6 100644 --- a/ompi/mca/pml/ob1/pml_ob1_start.c +++ b/ompi/mca/pml/ob1/pml_ob1_start.c @@ -38,7 +38,7 @@ int mca_pml_ob1_start(size_t count, ompi_request_t** requests) if(NULL == pml_request) continue; - /* If the persistent request is currebtly active - obtain the + /* If the persistent request is currently active - obtain the * request lock and verify the status is incomplete. if the * pml layer has not completed the request - mark the request * as free called - so that it will be freed when the request @@ -110,7 +110,7 @@ int mca_pml_ob1_start(size_t count, ompi_request_t** requests) case MCA_PML_REQUEST_SEND: { mca_pml_ob1_send_request_t* sendreq = (mca_pml_ob1_send_request_t*)pml_request; - if( reuse_old_request ) { + if( reuse_old_request && (sendreq->req_send.req_bytes_packed != 0) ) { size_t offset = 0; /** * Reset the convertor in case we're dealing with the original request,