Changeset: ca00ac1c8303 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/ca00ac1c8303
Modified Files:
        testing/Mtest.py.in
Branch: Aug2024
Log Message:

Remove useless code.
It also may, in exceptional circumstances, trigger a bug in CMDbbp()
which doesn't use any locking to scan the BBP.


diffs (29 lines):

diff --git a/testing/Mtest.py.in b/testing/Mtest.py.in
--- a/testing/Mtest.py.in
+++ b/testing/Mtest.py.in
@@ -1460,24 +1460,7 @@ def PerformDir(env, testdir, testlist, t
             interrupted = True
         finally:
             if pSrvr is not None:
-                try:
-                    dbh = pymonetdb.connect(username='monetdb',
-                                            password='monetdb',
-                                            hostname=HOST,
-                                            port=int(pSrvr.port),
-                                            database=TSTDB,
-                                            autocommit=True)
-                except KeyboardInterrupt:
-                    interrupted = True
-                except:
-                    pass
-                else:
-                    crs = dbh.cursor()
-                    crs.execute("select count(*), max(id) from sys.bbp()")
-                    nbats, maxid = crs.fetchall()[0]
-                    crs.close()
-                    dbh.close()
-                    pSrvr.sendusr1()
+                pSrvr.sendusr1()
                 pSrvr.terminate()
                 pSrvr = None
                 if produce_html:
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to