Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
neoppod
Commits
8a4daf80
Commit
8a4daf80
authored
Oct 16, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
1e0901cb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
go/neo/t/zgenprod1.py
go/neo/t/zgenprod1.py
+5
-0
go/neo/t/zhash.py
go/neo/t/zhash.py
+5
-0
No files found.
go/neo/t/zgenprod1.py
View file @
8a4daf80
...
...
@@ -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
)
...
...
go/neo/t/zhash.py
View file @
8a4daf80
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment