• Julien Muchembled's avatar
    Fix commit order of CMFActivity SQL connection on nodes with several zserver threads · 2c11b76a
    Julien Muchembled authored
    When a ZODB connection is closed, it usually returns to a ZODB pool and may be
    reused by another thread. If the SQL connection was open and is still in ZODB
    cache, the _v_database_connection attribute is still there:
    ActivityConnection.connect() is not called and a new instance of ZMySQLDA.db.DB
    is created for the new thread without initializing its sort key.
    2c11b76a
db.py 18.7 KB