qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cctriel...@apache.org
Subject svn commit: r597237 - in /incubator/qpid/trunk/qpid/cpp/src: qpid/client/SubscriptionManager.cpp qpid/client/SubscriptionManager.h tests/perftest.cpp
Date Wed, 21 Nov 2007 22:45:14 GMT
Author: cctrieloff
Date: Wed Nov 21 14:45:14 2007
New Revision: 597237

URL: http://svn.apache.org/viewvc?rev=597237&view=rev
Log:
- set default to pre-acquire for acquire mode

Modified:
    incubator/qpid/trunk/qpid/cpp/src/qpid/client/SubscriptionManager.cpp
    incubator/qpid/trunk/qpid/cpp/src/qpid/client/SubscriptionManager.h
    incubator/qpid/trunk/qpid/cpp/src/tests/perftest.cpp

Modified: incubator/qpid/trunk/qpid/cpp/src/qpid/client/SubscriptionManager.cpp
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/src/qpid/client/SubscriptionManager.cpp?rev=597237&r1=597236&r2=597237&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/src/qpid/client/SubscriptionManager.cpp (original)
+++ incubator/qpid/trunk/qpid/cpp/src/qpid/client/SubscriptionManager.cpp Wed Nov 21 14:45:14
2007
@@ -35,7 +35,7 @@
 SubscriptionManager::SubscriptionManager(Session_0_10& s)
     : dispatcher(s), session(s),
       messages(UNLIMITED), bytes(UNLIMITED), window(true),
-      confirmMode(true), acquireMode(true)
+      confirmMode(true), acquireMode(false)
 {}
 
 void SubscriptionManager::subscribeInternal(

Modified: incubator/qpid/trunk/qpid/cpp/src/qpid/client/SubscriptionManager.h
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/src/qpid/client/SubscriptionManager.h?rev=597237&r1=597236&r2=597237&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/src/qpid/client/SubscriptionManager.h (original)
+++ incubator/qpid/trunk/qpid/cpp/src/qpid/client/SubscriptionManager.h Wed Nov 21 14:45:14
2007
@@ -108,8 +108,8 @@
      */
     void setConfirmMode(bool confirm);
 
-    /** Set the acquire-mode for new subscriptions. Defaults to true.
-     *@param acquire: if false messages are not dequed, if true
+    /** Set the acquire-mode for new subscriptions. Defaults to false.
+     *@param acquire: if false messages pre-acquired, if true
      * messages are dequed on acknowledgement or on transfer 
 	 * depending on confirmMode.
      */

Modified: incubator/qpid/trunk/qpid/cpp/src/tests/perftest.cpp
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/src/tests/perftest.cpp?rev=597237&r1=597236&r2=597237&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/src/tests/perftest.cpp (original)
+++ incubator/qpid/trunk/qpid/cpp/src/tests/perftest.cpp Wed Nov 21 14:45:14 2007
@@ -55,7 +55,7 @@
         listen(false), publish(false), purge(false),
         count(500000), size(64), consumers(1),
         mode("shared"), autoAck(100),
-        summary(false), confirmMode(false), acquireMode(true)
+        summary(false), confirmMode(false), acquireMode(false)
     {
         addOptions() 
             ("listen", optValue(listen), "Consume messages.")
@@ -69,7 +69,7 @@
             ("auto-ack", optValue(autoAck, "N"), "ack every N messages.")
             ("summary,s", optValue(summary), "summary output only")
             ("confirm-mode", optValue(confirmMode, "N"), "confirm mode")
-            ("acquire-mode", optValue(acquireMode, "Y"), "acquire mode");
+            ("acquire-mode", optValue(acquireMode, "N"), "acquire mode (N - pre acquire,
Y - no acquire");
     }
 };
 



Mime
View raw message