activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1463787 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/util/LongSequenceGenerator.cpp
Date Tue, 02 Apr 2013 22:57:42 GMT
Author: tabish
Date: Tue Apr  2 22:57:42 2013
New Revision: 1463787

URL: http://svn.apache.org/r1463787
Log:
ensure count starts at one not zero, makes Id logs match up with counts.

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/util/LongSequenceGenerator.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/util/LongSequenceGenerator.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/util/LongSequenceGenerator.cpp?rev=1463787&r1=1463786&r2=1463787&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/util/LongSequenceGenerator.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/util/LongSequenceGenerator.cpp
Tue Apr  2 22:57:42 2013
@@ -34,7 +34,7 @@ LongSequenceGenerator::~LongSequenceGene
 long long LongSequenceGenerator::getNextSequenceId() {
 
     synchronized(&mutex) {
-        return this->lastSequenceId++;
+        return ++this->lastSequenceId;
     }
 
     return 0;



Mime
View raw message