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

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Thu Jul 1 15:39:08 EDT 2010


Author: kpvdr
Date: 2010-07-01 15:39:08 -0400 (Thu, 01 Jul 2010)
New Revision: 4063

Modified:
   store/trunk/cpp/lib/jrnl/jcntl.cpp
Log:
Corrected ::usleep() constants which were reversed in loop

Modified: store/trunk/cpp/lib/jrnl/jcntl.cpp
===================================================================
--- store/trunk/cpp/lib/jrnl/jcntl.cpp	2010-07-01 17:13:04 UTC (rev 4062)
+++ store/trunk/cpp/lib/jrnl/jcntl.cpp	2010-07-01 19:39:08 UTC (rev 4063)
@@ -440,9 +440,9 @@
     get_wr_events();
     while (fcntlp->wr_fhdr_aio_outstanding())
     {
-        if (++cnt > AIO_CMPL_SLEEP)
+        if (++cnt > MAX_AIO_CMPL_SLEEPS)
             throw jexception(jerrno::JERR_JCNTL_AIOCMPLWAIT, "jcntl", "fhdr_wr_sync");
-        ::usleep(MAX_AIO_CMPL_SLEEPS);
+        ::usleep(AIO_CMPL_SLEEP);
         get_wr_events();
     }
 }



More information about the rhmessaging-commits mailing list