Author: gsim
Date: Mon May 11 19:57:17 2009
New Revision: 773667
URL: http://svn.apache.org/viewvc?rev=773667&view=rev
Log:
Reserve space for sequence id in args field table.
Modified:
qpid/trunk/qpid/cpp/src/qpid/replication/ReplicationExchange.cpp
Modified: qpid/trunk/qpid/cpp/src/qpid/replication/ReplicationExchange.cpp
URL:
http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/replication/ReplicationExchange.cpp?rev=773667&r1=773666&r2=773667&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/replication/ReplicationExchange.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/replication/ReplicationExchange.cpp Mon May 11
19:57:17 2009
@@ -36,11 +36,13 @@
const std::string SEQUENCE_VALUE("qpid.replication-event.sequence");
ReplicationExchange::ReplicationExchange(const std::string& name, bool
durable,
- const FieldTable& args,
+ const FieldTable& _args,
QueueRegistry& qr,
Manageable* parent)
- : Exchange(name, durable, args, parent), queues(qr),
sequence(args.getAsInt64(SEQUENCE_VALUE)), init(false)
- {}
+ : Exchange(name, durable, _args, parent), queues(qr),
sequence(args.getAsInt64(SEQUENCE_VALUE)), init(false)
+{
+ args.setInt64(SEQUENCE_VALUE, sequence);
+}
std::string ReplicationExchange::getType() const { return typeName; }
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]