don't issue critical warning about missing text index when we're creating the instance stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 05 Mar 2010 09:35:06 +0100
branchstable
changeset 4810 3055dc7a7c88
parent 4809 1e983e926cca
child 4811 6c3d5f2a4e01
don't issue critical warning about missing text index when we're creating the instance
server/sources/native.py
--- a/server/sources/native.py	Fri Mar 05 09:24:55 2010 +0100
+++ b/server/sources/native.py	Fri Mar 05 09:35:06 2010 +0100
@@ -208,7 +208,8 @@
         # check full text index availibility
         if self.do_fti:
             if not self.indexer.has_fti_table(pool['system']):
-                self.critical('no text index table')
+                if not repo.config.creating:
+                    self.critical('no text index table')
                 self.do_fti = False
         pool.pool_reset()
         self.repo._free_pool(pool)