You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2013/04/03 00:57:42 UTC
svn commit: r1463787 -
/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/util/LongSequenceGenerator.cpp
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;