summaryrefslogtreecommitdiff
path: root/qpid/cpp/src
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2009-05-11 19:57:17 +0000
committerGordon Sim <gsim@apache.org>2009-05-11 19:57:17 +0000
commit2a83d3e5d6e9303fc6105760fa201632b301e893 (patch)
treeb40d48b4fc26f21e8f56b4188eb4d1e702e68026 /qpid/cpp/src
parente4e7f57f3cd65cc8e7dc724bb9ebe5920ac4bfdd (diff)
downloadqpid-python-2a83d3e5d6e9303fc6105760fa201632b301e893.tar.gz
Reserve space for sequence id in args field table.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@773667 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
-rw-r--r--qpid/cpp/src/qpid/replication/ReplicationExchange.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/qpid/cpp/src/qpid/replication/ReplicationExchange.cpp b/qpid/cpp/src/qpid/replication/ReplicationExchange.cpp
index 29cdf21bc6..053a317743 100644
--- a/qpid/cpp/src/qpid/replication/ReplicationExchange.cpp
+++ b/qpid/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; }