Commit 8a4daf80 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 1e0901cb
......@@ -25,6 +25,7 @@ from neo.tests.stat_zodb import PROD1
from random import Random
import zodbtools.util
import sys
import logging
def usage(w):
print(\
......@@ -41,6 +42,10 @@ def main():
url = argv[0]
n = int(argv[1])
# log -> stderr
l = logging.getLogger()
l.addHandler(logging.StreamHandler())
zin = PROD1(Random(0)).as_storage(n)
zout = zodbtools.util.storageFromURL(url)
......
......@@ -29,6 +29,7 @@ from ZODB.utils import p64, u64
import hashlib
from zlib import crc32, adler32
import sys
import logging
from time import time
from getopt import getopt, GetoptError
......@@ -131,6 +132,10 @@ def main():
url = argv[0]
# log -> stderr
l = logging.getLogger()
l.addHandler(logging.StreamHandler())
stor = zodbtools.util.storageFromURL(url, read_only=True)
last_tid = stor.lastTransaction()
before = p64(u64(last_tid) + 1)
......
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