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

.

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