From b47aa5c142c4c0da77b5084dfcd98b843d1154d1 Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Wed, 30 Nov 2005 00:16:58 +0000 Subject: [PATCH] If pending_length is not zero the datatype engine believe that a partial conversion is still in the buffer attached to the convertor. We have to force it to zero for all new convertors. This bug is still half fixed until I figure out a correct way to do it when we clone a convertor ... Anyway, this future correction will not affect open mpi. This commit was SVN r8324. --- ompi/datatype/convertor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ompi/datatype/convertor.c b/ompi/datatype/convertor.c index 4fc879f96f..d187f933f6 100644 --- a/ompi/datatype/convertor.c +++ b/ompi/datatype/convertor.c @@ -71,6 +71,7 @@ static void ompi_convertor_construct( ompi_convertor_t* convertor ) convertor->memAlloc_userdata = NULL; convertor->stack_pos = 0; convertor->remoteArch = 0; + convertor->pending_length = 0; } static void ompi_convertor_destruct( ompi_convertor_t* convertor )