summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/test/suite/test_prepare20.py
diff options
context:
space:
mode:
authorLucas de Castro Borges <lucas@gnuabordo.com.br>2025-02-14 14:26:38 -0300
committerLucas de Castro Borges <lucas@gnuabordo.com.br>2025-02-14 14:26:38 -0300
commit294bc6ecabf14c09c9bc8644704921dcf97cb44e (patch)
tree279b1e0bab53901a1647ac63c1c724f0f789a663 /src/third_party/wiredtiger/test/suite/test_prepare20.py
parent70be7c27a251621187a1de533462ae2bb1e3bd39 (diff)
parent1e917fd798aa25b7066d4b414b51184f13d5a092 (diff)
Update upstream source from tag 'upstream/6.0.10'debian/6.0.10-1
Update to upstream version '6.0.10' with Debian dir 2d176fa254eee97b139f712fec5709641335a8c3
Diffstat (limited to 'src/third_party/wiredtiger/test/suite/test_prepare20.py')
-rw-r--r--src/third_party/wiredtiger/test/suite/test_prepare20.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/third_party/wiredtiger/test/suite/test_prepare20.py b/src/third_party/wiredtiger/test/suite/test_prepare20.py
index 0b541d40730..6f219ea2c83 100644
--- a/src/third_party/wiredtiger/test/suite/test_prepare20.py
+++ b/src/third_party/wiredtiger/test/suite/test_prepare20.py
@@ -27,14 +27,14 @@
# OTHER DEALINGS IN THE SOFTWARE.
-# test_prepare19.py
+# test_prepare20.py
# Check that we can use an application-level log to replay unstable transactions.
-import wiredtiger, wttest
+import wttest
from wtscenario import make_scenarios
from helper import simulate_crash_restart
-class test_prepare19(wttest.WiredTigerTestCase):
+class test_prepare20(wttest.WiredTigerTestCase):
# Do write the logs immediately, but don't waste time fsyncing them.
conn_config = 'log=(enabled),transaction_sync=(enabled=true,method=none)'
@@ -131,7 +131,7 @@ class test_prepare19(wttest.WiredTigerTestCase):
# First pass: find prepared txns. Ignore (thus abort) any that didn't even prepare.
txns = {}
self.lcursor.reset()
- for lsn, op, k, oldv, newv in self.lcursor:
+ for _, op, k, oldv, newv in self.lcursor:
if op == self.BEGIN:
# "key" is the txnid
txns[k] = False
@@ -143,7 +143,7 @@ class test_prepare19(wttest.WiredTigerTestCase):
writing = False
committime = None
durabletime = None
- for lsn, op, k, oldv, newv in self.lcursor:
+ for _, op, k, oldv, newv in self.lcursor:
if op == self.BEGIN:
# "key" is the txnid
if txns[k]:
@@ -198,9 +198,9 @@ class test_prepare19(wttest.WiredTigerTestCase):
# Now the test.
- def test_prepare19(self):
- data_uri = 'file:prepare19data'
- log_uri = 'file:prepare19log'
+ def test_prepare20(self):
+ data_uri = 'file:prepare20data'
+ log_uri = 'file:prepare20log'
# Create one table for data and another to be an application-level log.
# The log's format is application-lsn -> operation, key, oldvalue, newvalue