You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by db...@apache.org on 2005/06/17 22:49:10 UTC

svn commit: r191195 - /xerces/c/trunk/src/xercesc/validators/schema/ComplexTypeInfo.cpp

Author: dbertoni
Date: Fri Jun 17 13:49:10 2005
New Revision: 191195

URL: http://svn.apache.org/viewcvs?rev=191195&view=rev
Log:
Fix for concurrency issue with deserialized schema grammars.

Modified:
    xerces/c/trunk/src/xercesc/validators/schema/ComplexTypeInfo.cpp

Modified: xerces/c/trunk/src/xercesc/validators/schema/ComplexTypeInfo.cpp
URL: http://svn.apache.org/viewcvs/xerces/c/trunk/src/xercesc/validators/schema/ComplexTypeInfo.cpp?rev=191195&r1=191194&r2=191195&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/validators/schema/ComplexTypeInfo.cpp (original)
+++ xerces/c/trunk/src/xercesc/validators/schema/ComplexTypeInfo.cpp Fri Jun 17 13:49:10 2005
@@ -926,6 +926,14 @@
          fContentSpecOrgURI = 0;
          fContentSpecOrgURISize = 0;
          fUniqueURI = 0;
+
+         // Create the content model by calling getContentModel().  This
+         // will ensure the grammar can be used concurrently by multiple
+         // parsers.
+         // Don't bother to do check unique particle attribution, since
+         // this will already have been done when the grammar was first
+         // created (if full schema checking was enabled).
+         getContentModel(false);
     }
 }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org