server/serverctl.py
changeset 7398 26695dd703d8
parent 7342 d1c8b5b3531c
child 7457 f7c97a3cd121
equal deleted inserted replaced
7397:6a9e66d788b3 7398:26695dd703d8
   968     def run(self, args):
   968     def run(self, args):
   969         from cubicweb.server.checkintegrity import reindex_entities
   969         from cubicweb.server.checkintegrity import reindex_entities
   970         appid = args[0]
   970         appid = args[0]
   971         config = ServerConfiguration.config_for(appid)
   971         config = ServerConfiguration.config_for(appid)
   972         repo, cnx = repo_cnx(config)
   972         repo, cnx = repo_cnx(config)
   973         session = repo._get_session(cnx.sessionid, setpool=True)
   973         session = repo._get_session(cnx.sessionid, setcnxset=True)
   974         reindex_entities(repo.schema, session)
   974         reindex_entities(repo.schema, session)
   975         cnx.commit()
   975         cnx.commit()
   976 
   976 
   977 
   977 
   978 class SynchronizeInstanceSchemaCommand(Command):
   978 class SynchronizeInstanceSchemaCommand(Command):