Skip to content

Commit 8b1a3dc

Browse files
author
Kim van der Riet
committed
QPID-8430: Excessive memory use when rerouting messages
1 parent 7923473 commit 8b1a3dc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/qpid/broker/Message.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@ void Message::addTraceId(const std::string& id)
127127

128128
void Message::clearTrace()
129129
{
130-
addAnnotation(X_QPID_TRACE, std::string());
130+
if (!getPropertyAsString(X_QPID_TRACE).empty()) {
131+
addAnnotation(X_QPID_TRACE, std::string());
132+
}
131133
}
132134

133135
uint64_t Message::getTimestamp() const

0 commit comments

Comments
 (0)