[rhmessaging-commits] rhmessaging commits: r2034 - store/trunk/cpp/lib/jrnl.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Fri May 9 16:41:11 EDT 2008


Author: kpvdr
Date: 2008-05-09 16:41:11 -0400 (Fri, 09 May 2008)
New Revision: 2034

Modified:
   store/trunk/cpp/lib/jrnl/jcntl.cpp
Log:
Fix for RHEL4: ifstream::close() does not reset error flags, must explicitly clear them before next ifstream::open()

Modified: store/trunk/cpp/lib/jrnl/jcntl.cpp
===================================================================
--- store/trunk/cpp/lib/jrnl/jcntl.cpp	2008-05-09 19:05:15 UTC (rev 2033)
+++ store/trunk/cpp/lib/jrnl/jcntl.cpp	2008-05-09 20:41:11 UTC (rev 2034)
@@ -839,6 +839,7 @@
         {
             rd._eo = ifsp->tellg(); // remember file offset before closing
             ifsp->close();
+            ifsp->clear(); // clear eof flag, req'd for older versions of c++
             if (++fid >= _num_jfiles)
             {
                 fid = 0;




More information about the rhmessaging-commits mailing list