Author: tross Date: Mon Aug 2 20:47:12 2010 New Revision: 981682 URL: http://svn.apache.org/viewvc?rev=981682&view=rev Log: 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).
Modified: qpid/trunk/qpid/extras/qmf/src/py/qmf/console.py Modified: qpid/trunk/qpid/extras/qmf/src/py/qmf/console.py URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/extras/qmf/src/py/qmf/console.py?rev=981682&r1=981681&r2=981682&view=diff ============================================================================== --- qpid/trunk/qpid/extras/qmf/src/py/qmf/console.py (original) +++ qpid/trunk/qpid/extras/qmf/src/py/qmf/console.py Mon Aug 2 20:47:12 2010 @@ -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 --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:commits-subscr...@qpid.apache.org