From 2be73b1fa71d50ef20d444d0f2bdce9fd90ccc24 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Mon, 11 May 2009 19:57:17 +0000 Subject: Reserve space for sequence id in args field table. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@773667 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/replication/ReplicationExchange.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'cpp/src') diff --git a/cpp/src/qpid/replication/ReplicationExchange.cpp b/cpp/src/qpid/replication/ReplicationExchange.cpp index 29cdf21bc6..053a317743 100644 --- a/cpp/src/qpid/replication/ReplicationExchange.cpp +++ b/cpp/src/qpid/replication/ReplicationExchange.cpp @@ -36,11 +36,13 @@ using namespace qpid::replication::constants; 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; } -- cgit v1.2.1