mirror of
https://github.com/mariadb-corporation/mariadb-connector-python.git
synced 2025-08-07 11:39:43 +00:00
Fix for CONPY-245:
Instead of iterating through all connections and checking the health status via ping, used and unused connections were separated in different lists. This ensures that the last used connection will be always the first.
This commit is contained in:
@ -51,10 +51,9 @@ class Connection(mariadb._mariadb.connection):
|
||||
"""
|
||||
|
||||
self._socket = None
|
||||
self.__in_use = 0
|
||||
self._used = 0
|
||||
self._last_executed_statement = None
|
||||
self._socket = None
|
||||
self.__in_use = 0
|
||||
self.__pool = None
|
||||
self.__last_used = 0
|
||||
self.tpc_state = TPC_STATE.NONE
|
||||
|
Reference in New Issue
Block a user