Title: [commits] (vajda) [16038] worked around init order problem
Revision
16038
Author
vajda
Date
2007-12-03 21:58:30 -0800 (Mon, 03 Dec 2007)

Log Message

worked around init order problem

Modified Paths

Diff

Modified: trunk/chandler/repository/persistence/LuceneContainer.py (16037 => 16038)

--- trunk/chandler/repository/persistence/LuceneContainer.py	2007-12-04 03:42:25 UTC (rev 16037)
+++ trunk/chandler/repository/persistence/LuceneContainer.py	2007-12-04 05:58:30 UTC (rev 16038)
@@ -24,7 +24,6 @@
 initVM(CLASSPATH, maxstack='2m')
 
 from chandlerdb.util.c import UUID
-from chandlerdb.persistence.c import DBLockDeadlockError, DBInvalidArgError
 
 from repository.persistence.FileContainer import FileContainer, RepositoryError
 from repository.persistence.DBContainer import VersionContainer

Modified: trunk/chandler/repository/persistence/Repository.py (16037 => 16038)

--- trunk/chandler/repository/persistence/Repository.py	2007-12-04 03:42:25 UTC (rev 16037)
+++ trunk/chandler/repository/persistence/Repository.py	2007-12-04 05:58:30 UTC (rev 16038)
@@ -356,7 +356,11 @@
     def run(self):
 
         from lucene import getVMEnv
-        getVMEnv().attachCurrentThread()
+        env = getVMEnv()
+        if env is not None:
+            env.attachCurrentThread()
+        self._vmEnv = env
+
         super(RepositoryThread, self).run()
 
 




_______________________________________________
Commits mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/commits

Reply via email to