summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2010-08-02 20:47:12 +0000
committerTed Ross <tross@apache.org>2010-08-02 20:47:12 +0000
commit958685182d679e791128a44c22b747db5d81dba4 (patch)
treed3d81cac97b2b6e31e61da2c9dbc3c10c7c7cb9c
parent16b9e3c6473b5a4c0db548054572f5b79aff9ecc (diff)
downloadqpid-python-958685182d679e791128a44c22b747db5d81dba4.tar.gz
Bugfix: Schema cache in console.py could get locked in the state where
entries were partial (i.e. schema key is known but schema is not). git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@981682 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--qpid/extras/qmf/src/py/qmf/console.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/extras/qmf/src/py/qmf/console.py b/qpid/extras/qmf/src/py/qmf/console.py
index 378f43912c..9967ba2b78 100644
--- a/qpid/extras/qmf/src/py/qmf/console.py
+++ b/qpid/extras/qmf/src/py/qmf/console.py
@@ -1579,7 +1579,7 @@ class SchemaCache(object):
self.packages[pname] = {}
new_package = True
packageMap = self.packages[pname]
- if pkey not in packageMap:
+ if pkey not in packageMap or not isinstance(packageMap[pkey], SchemaClass):
if classDef is not None:
new_class = True
packageMap[pkey] = classDef