summaryrefslogtreecommitdiff
path: root/cpp/src/broker/RecoveryManagerImpl.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-04-05 11:48:05 +0000
committerGordon Sim <gsim@apache.org>2007-04-05 11:48:05 +0000
commitbe0ad1041a449196a328260d2210c5f7c27fa0a1 (patch)
tree6a4a648a2fca1de6f0a8572e063fc701a9de68b7 /cpp/src/broker/RecoveryManagerImpl.cpp
parent4547988868ea17dd34064204de84e66206b16d5b (diff)
downloadqpid-python-be0ad1041a449196a328260d2210c5f7c27fa0a1.tar.gz
* Further (minor) changes to the interface between store and broker.
* TxBuffer now uses shared_ptr to TxOps (removed DeletingTxOp) * Queue now persists the field table of settings git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@525801 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/broker/RecoveryManagerImpl.cpp')
-rw-r--r--cpp/src/broker/RecoveryManagerImpl.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/cpp/src/broker/RecoveryManagerImpl.cpp b/cpp/src/broker/RecoveryManagerImpl.cpp
index 7c04ec9916..f82399f95c 100644
--- a/cpp/src/broker/RecoveryManagerImpl.cpp
+++ b/cpp/src/broker/RecoveryManagerImpl.cpp
@@ -45,6 +45,7 @@ public:
RecoverableMessageImpl(Message::shared_ptr& _msg, uint64_t _stagingThreshold)
: msg(_msg), stagingThreshold(_stagingThreshold) {}
~RecoverableMessageImpl() {};
+ void setPersistenceId(uint64_t id);
bool loadContent(uint64_t available);
void decodeContent(framing::Buffer& buffer);
void recover(Queue::shared_ptr queue);
@@ -56,6 +57,7 @@ class RecoverableQueueImpl : public RecoverableQueue
public:
RecoverableQueueImpl(Queue::shared_ptr& _queue) : queue(_queue) {}
~RecoverableQueueImpl() {};
+ void setPersistenceId(uint64_t id);
void recover(RecoverableMessage::shared_ptr msg);
};
@@ -125,7 +127,17 @@ void RecoverableMessageImpl::recover(Queue::shared_ptr queue)
queue->recover(msg);
}
+void RecoverableMessageImpl::setPersistenceId(uint64_t id)
+{
+ msg->setPersistenceId(id);
+}
+
void RecoverableQueueImpl::recover(RecoverableMessage::shared_ptr msg)
{
dynamic_pointer_cast<RecoverableMessageImpl>(msg)->recover(queue);
}
+
+void RecoverableQueueImpl::setPersistenceId(uint64_t id)
+{
+ queue->setPersistenceId(id);
+}