[rhmessaging-commits] rhmessaging commits: r2518 - store/branches/mrg-1.0/cpp/lib/jrnl.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Mon Sep 22 11:30:27 EDT 2008


Author: kpvdr
Date: 2008-09-22 11:30:26 -0400 (Mon, 22 Sep 2008)
New Revision: 2518

Modified:
   store/branches/mrg-1.0/cpp/lib/jrnl/jcntl.cpp
Log:
Further bug uncovered by testing for BZ458053. This is a logic error handling recovered records where the end of the record coincides with the end of the file.

Modified: store/branches/mrg-1.0/cpp/lib/jrnl/jcntl.cpp
===================================================================
--- store/branches/mrg-1.0/cpp/lib/jrnl/jcntl.cpp	2008-09-22 15:29:40 UTC (rev 2517)
+++ store/branches/mrg-1.0/cpp/lib/jrnl/jcntl.cpp	2008-09-22 15:30:26 UTC (rev 2518)
@@ -865,7 +865,7 @@
             rd._eo = start_file_offs;
             return false;
         }
-        if (!jfile_cycle(fid, ifsp, lowi, rd, false))
+        if (!done && !jfile_cycle(fid, ifsp, lowi, rd, false))
             return false;
     }
     return true;




More information about the rhmessaging-commits mailing list