Commit cdb7c0c7 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

#3058 document the prov-2.py undo test generator refs[t:3058]

git-svn-id: file:///svn/toku/tokudb@26028 c7de825b-a66e-492c-adef-691d508d4ae1
parent 1433da29
#!/usr/bin/env python #!/usr/bin/env python
# generate hotindexing undo provisional tests # generate hotindexing undo provisional tests with 2 nested transactions
import sys import sys
...@@ -23,9 +23,13 @@ def print_test(fp, live, commit, prov0, prov1): ...@@ -23,9 +23,13 @@ def print_test(fp, live, commit, prov0, prov1):
print_tr(fp, prov1, "provisional") print_tr(fp, prov1, "provisional")
def main(): def main():
# live transactions
for live in ["", "200", "200,201"]: for live in ["", "200", "200,201"]:
# committed transaction records
for commit in ["i0", "d0"]: for commit in ["i0", "d0"]:
# provisional level 0 transaction records
for prov0 in ["i200", "d200", "p200"]: for prov0 in ["i200", "d200", "p200"]:
# provisional level 1 transaction records
for prov1 in ["i201", "d201"]: for prov1 in ["i201", "d201"]:
if live == "": if live == "":
fname = "prov.%s.%s.%s.test" % (commit, prov0, prov1) fname = "prov.%s.%s.%s.test" % (commit, prov0, prov1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment