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

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Tue Nov 11 10:57:53 EST 2008


Author: kpvdr
Date: 2008-11-11 10:57:53 -0500 (Tue, 11 Nov 2008)
New Revision: 2783

Modified:
   store/trunk/cpp/lib/jrnl/wmgr.cpp
Log:
Logic fix for possible JERR_FCNTL_CMPLOFFSOVFL errors in small journal/large message combination

Modified: store/trunk/cpp/lib/jrnl/wmgr.cpp
===================================================================
--- store/trunk/cpp/lib/jrnl/wmgr.cpp	2008-11-11 13:13:11 UTC (rev 2782)
+++ store/trunk/cpp/lib/jrnl/wmgr.cpp	2008-11-11 15:57:53 UTC (rev 2783)
@@ -876,6 +876,7 @@
             u_int32_t fid = fhp->_fid;
             fcntl* fcntlp = _jc->get_fcntlp(fid);
             fcntlp->add_wr_cmpl_cnt_dblks(JRNL_SBLK_SIZE);
+            fcntlp->decr_aio_cnt();
         }        
     }
 
@@ -1061,6 +1062,7 @@
         throw jexception(jerrno::JERR__AIO, "wmgr", "write_fhdr");
     _aio_evt_rem++;
     _wrfc.add_subm_cnt_dblks(JRNL_SBLK_SIZE);
+    _wrfc.incr_aio_cnt();
 }
 
 void




More information about the rhmessaging-commits mailing list