summaryrefslogtreecommitdiff
path: root/qpid/cpp/managementgen
diff options
context:
space:
mode:
authorKenneth Anthony Giusti <kgiusti@apache.org>2010-09-22 12:48:00 +0000
committerKenneth Anthony Giusti <kgiusti@apache.org>2010-09-22 12:48:00 +0000
commita349ccd5a819226cf70618fb170785e001d42cff (patch)
tree7f6d3ec4702ed6a8967ab5df0ddfc05fff8e5386 /qpid/cpp/managementgen
parentd84071cddec3b91853bd824eef8c39fdf10a61aa (diff)
downloadqpid-python-a349ccd5a819226cf70618fb170785e001d42cff.tar.gz
clarify a comment
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@999916 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/managementgen')
-rwxr-xr-xqpid/cpp/managementgen/qmfgen/schema.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/qpid/cpp/managementgen/qmfgen/schema.py b/qpid/cpp/managementgen/qmfgen/schema.py
index ec0ccc3462..f01d5ee9b2 100755
--- a/qpid/cpp/managementgen/qmfgen/schema.py
+++ b/qpid/cpp/managementgen/qmfgen/schema.py
@@ -1315,7 +1315,9 @@ class SchemaClass:
def genPrimaryKey (self, stream, variables):
first = 1
for prop in self.properties:
- if prop.getName() != "vhostRef": # Limit how deep the v2Key strings get
+ # deliberately leave out the "vhostRef" fields since there's only one vhost,
+ # this serves to shorten the keys without compromising uniqueness
+ if prop.getName() != "vhostRef":
if prop.isIndex == 1:
if first:
first = None