server/sources/extlite.py
changeset 2611 0557f25682da
parent 2493 9806571ea790
child 2619 535bc210f799
equal deleted inserted replaced
2610:2933cc6bf9ad 2611:0557f25682da
   168         """the pool using the given connection is being reseted from its current
   168         """the pool using the given connection is being reseted from its current
   169         attached session: release the connection lock if the connection wrapper
   169         attached session: release the connection lock if the connection wrapper
   170         has a connection set
   170         has a connection set
   171         """
   171         """
   172         if cnx._cnx is not None:
   172         if cnx._cnx is not None:
   173             cnx._cnx.close()
       
   174             # reset _cnx to ensure next thread using cnx will get a new
   173             # reset _cnx to ensure next thread using cnx will get a new
   175             # connection
   174             # connection
   176             cnx._cnx = None
   175             cnx.close()
   177 
   176 
   178     def syntax_tree_search(self, session, union,
   177     def syntax_tree_search(self, session, union,
   179                            args=None, cachekey=None, varmap=None, debug=0):
   178                            args=None, cachekey=None, varmap=None, debug=0):
   180         """return result from this source for a rql query (actually from a rql
   179         """return result from this source for a rql query (actually from a rql
   181         syntax tree and a solution dictionary mapping each used variable to a
   180         syntax tree and a solution dictionary mapping each used variable to a