summaryrefslogtreecommitdiff
path: root/cpp/lib/broker/LazyLoadedContent.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2006-12-06 17:51:42 +0000
committerGordon Sim <gsim@apache.org>2006-12-06 17:51:42 +0000
commitf2d0f0cfbfebb082e92f28b8d1b2987a0f20acf6 (patch)
treed71e0a7854dcfbef75040ee426b53f6369e0cc7a /cpp/lib/broker/LazyLoadedContent.cpp
parentf8c692d37104a95ad245402ffe0d7d6b7c4ea816 (diff)
downloadqpid-python-f2d0f0cfbfebb082e92f28b8d1b2987a0f20acf6.tar.gz
Allow non-durable messages to be lazy-loaded. Cleanup of lazy-loaded messages
that are never enqueued. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@483165 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/lib/broker/LazyLoadedContent.cpp')
-rw-r--r--cpp/lib/broker/LazyLoadedContent.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/lib/broker/LazyLoadedContent.cpp b/cpp/lib/broker/LazyLoadedContent.cpp
index c0da48efda..51aa6c590b 100644
--- a/cpp/lib/broker/LazyLoadedContent.cpp
+++ b/cpp/lib/broker/LazyLoadedContent.cpp
@@ -56,3 +56,8 @@ void LazyLoadedContent::encode(Buffer&)
{
//do nothing as all content is written as soon as it is added
}
+
+void LazyLoadedContent::destroy()
+{
+ store->destroy(msg);
+}