[rhmessaging-commits] rhmessaging commits: r4362 - in store/trunk/cpp: tests/jrnl and 1 other directory.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Thu Sep 30 10:52:39 EDT 2010


Author: kpvdr
Date: 2010-09-30 10:52:39 -0400 (Thu, 30 Sep 2010)
New Revision: 4362

Modified:
   store/trunk/cpp/lib/jrnl/wrfc.hpp
   store/trunk/cpp/tests/jrnl/_st_helper_fns.hpp
Log:
Changed use of std::vector:data() for more portable solution. RHEL-4 did not like the data() member. Fixed some bad spelling in wrfc.hpp.

Modified: store/trunk/cpp/lib/jrnl/wrfc.hpp
===================================================================
--- store/trunk/cpp/lib/jrnl/wrfc.hpp	2010-09-29 18:04:25 UTC (rev 4361)
+++ store/trunk/cpp/lib/jrnl/wrfc.hpp	2010-09-30 14:52:39 UTC (rev 4362)
@@ -52,7 +52,7 @@
 
     /**
     * \class wrfc
-    * \brief Class to handle write manangement of a journal rotating file controller.
+    * \brief Class to handle write management of a journal rotating file controller.
     */
     class wrfc : public rfc
     {
@@ -90,7 +90,7 @@
         u_int16_t earliest_index() const;
 
         /**
-        * \brief Determines if a paroposed write would cause the enqueue threshold to be exceeded.
+        * \brief Determines if a proposed write would cause the enqueue threshold to be exceeded.
         *
         * The following routine finds whether the next write will take the write pointer to beyond the
         * enqueue limit threshold. The following illustrates how this is achieved.

Modified: store/trunk/cpp/tests/jrnl/_st_helper_fns.hpp
===================================================================
--- store/trunk/cpp/tests/jrnl/_st_helper_fns.hpp	2010-09-29 18:04:25 UTC (rev 4361)
+++ store/trunk/cpp/tests/jrnl/_st_helper_fns.hpp	2010-09-30 14:52:39 UTC (rev 4362)
@@ -563,7 +563,7 @@
                 std::vector<char> sblk_buffer(JRNL_DBLK_SIZE * JRNL_SBLK_SIZE, fill_char);
                 u_int32_t fwritten_sblks = 0; // hdr
                 while (fwritten_sblks++ < fsize_sblks)
-                    of.write(sblk_buffer.data(), JRNL_DBLK_SIZE * JRNL_SBLK_SIZE);
+                    of.write(&sblk_buffer[0], JRNL_DBLK_SIZE * JRNL_SBLK_SIZE);
             }
         }
 };



More information about the rhmessaging-commits mailing list