diff options
| author | Ted Ross <tross@apache.org> | 2008-12-08 14:26:55 +0000 |
|---|---|---|
| committer | Ted Ross <tross@apache.org> | 2008-12-08 14:26:55 +0000 |
| commit | b0149eb99d4157a011a1ea57d74164f2cafc9ce9 (patch) | |
| tree | 0dd34ea1d13548846dccc1b97512856f25e96ca0 /cpp/src/qpid/agent | |
| parent | 75b79a3b11abf1def01f765f21cc781d54996153 (diff) | |
| download | qpid-python-b0149eb99d4157a011a1ea57d74164f2cafc9ce9.tar.gz | |
Management optimization: don't send (empty) statistic updates for object
classes that don't have statistics.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@724356 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/agent')
| -rw-r--r-- | cpp/src/qpid/agent/ManagementAgentImpl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/agent/ManagementAgentImpl.cpp b/cpp/src/qpid/agent/ManagementAgentImpl.cpp index 08af89a72e..3e8b8ee261 100644 --- a/cpp/src/qpid/agent/ManagementAgentImpl.cpp +++ b/cpp/src/qpid/agent/ManagementAgentImpl.cpp @@ -745,7 +745,7 @@ void ManagementAgentImpl::periodicProcessing() object->writeProperties(msgBuffer); } - if (object->getInstChanged() || object->getForcePublish()) { + if (object->hasInst() && (object->getInstChanged() || object->getForcePublish())) { encodeHeader(msgBuffer, 'i'); object->writeStatistics(msgBuffer); } |
