summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/broker/PersistableMessage.cpp
diff options
context:
space:
mode:
authorKim van der Riet <kpvdr@apache.org>2010-04-13 17:28:52 +0000
committerKim van der Riet <kpvdr@apache.org>2010-04-13 17:28:52 +0000
commita41bff40eb9080aa99a06b5325d47d995079d5a0 (patch)
tree6646955f9949fd0d4b8a7ab851005d1fea7cc427 /cpp/src/qpid/broker/PersistableMessage.cpp
parent118c4bb7fa781bbb4512a66ba1ca618e70abe64b (diff)
downloadqpid-python-a41bff40eb9080aa99a06b5325d47d995079d5a0.tar.gz
Fix for QPID-2470 - Broker does not honour flow-to-disk policy on recovery
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@933711 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/PersistableMessage.cpp')
-rw-r--r--cpp/src/qpid/broker/PersistableMessage.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/cpp/src/qpid/broker/PersistableMessage.cpp b/cpp/src/qpid/broker/PersistableMessage.cpp
index 76e9404b5d..62396ad995 100644
--- a/cpp/src/qpid/broker/PersistableMessage.cpp
+++ b/cpp/src/qpid/broker/PersistableMessage.cpp
@@ -170,6 +170,16 @@ bool PersistableMessage::checkContentReleasable()
return contentReleaseState.requested && !contentReleaseState.blocked;
}
+bool PersistableMessage::isContentReleaseBlocked()
+{
+ return contentReleaseState.blocked;
+}
+
+bool PersistableMessage::isContentReleaseRequested()
+{
+ return contentReleaseState.requested;
+}
+
}}