代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/mysql5 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
diff -urN mysql-5.7.38.orig/mysql-test/suite/innodb_stress/t/load_generator.py mysql-5.7.38.new/mysql-test/suite/innodb_stress/t/load_generator.py
--- mysql-5.7.38.orig/mysql-test/suite/innodb_stress/t/load_generator.py 2022-03-22 01:30:20.000000000 +0800
+++ mysql-5.7.38.new/mysql-test/suite/innodb_stress/t/load_generator.py 2022-05-07 14:41:03.555188841 +0800
@@ -47,12 +47,12 @@
try:
self.runme()
print >> self.log, "ok"
- except Exception, e:
+ except Exception as e:
self.exception = e
try:
cursor = self.con.cursor()
cursor.execute("INSERT INTO errors VALUES('%s')" % e)
- except MySQLdb.Error, e2:
+ except MySQLdb.Error as e2:
print >> self.log, "caught while inserting error (%s)" % e2
print >> self.log, "caught (%s)" % e
finally:
@@ -147,12 +147,12 @@
try:
self.runme()
print >> self.log, "ok"
- except Exception, e:
+ except Exception as e:
try:
cursor = self.con.cursor()
cursor.execute("INSERT INTO errors VALUES('%s')" % e)
con.commit()
- except MySQLdb.Error, e2:
+ except MySQLdb.Error as e2:
print >> self.log, "caught while inserting error (%s)" % e2
print >> self.log, "caught (%s)" % e
@@ -252,13 +252,13 @@
try:
self.runme()
print >> self.log, "ok, with do_blob %s" % self.do_blob
- except Exception, e:
+ except Exception as e:
try:
cursor = self.con.cursor()
cursor.execute("INSERT INTO errors VALUES('%s')" % e)
cursor.execute("COMMIT")
- except MySQLdb.Error, e2:
+ except MySQLdb.Error as e2:
print >> self.log, "caught while inserting error (%s)" % e2
print >> self.log, "caught (%s)" % e
@@ -358,7 +358,7 @@
elif r == 4:
self.con.rollback()
- except MySQLdb.Error, e:
+ except MySQLdb.Error as e:
if e.args[0] == 2006: # server is killed
print >> self.log, "mysqld down, transaction %d" % self.xid
return
@@ -367,7 +367,7 @@
try:
self.con.commit()
- except Exception, e:
+ except Exception as e:
print >> self.log, "commit error %s" % e
if __name__ == '__main__':
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。