Project

General

Profile

Bug #4251 » 0001-Fix-Hanging-transaction-in-whois-plugin-configuratio.patch

Radko Krkoš, 01/21/2020 01:06 PM

View differences:

lib/mentat/services/whois.py
256 256

  
257 257
        # Load network records from SQL database.
258 258
        records = storage.session.query(mentat.datatype.sqldb.NetworkModel).all()
259
        storage.session.commit()
260 259

  
261 260
        # Generate list of internal network record objects.
262 261
        networks = []
......
272 271
            networks.append(netw)
273 272

  
274 273
        # Rollback any changes, we are not supposed to change anything.
275
        #storage.session.rollback()
274
        storage.session.rollback()
276 275

  
277 276
        # Let the parent implementation take care of loading internal lookup table.
278 277
        return super().setup(networks)
    (1-1/1)