Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zodbtools
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
zodbtools
Commits
1a8a61d3
Commit
1a8a61d3
authored
Apr 28, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
f7fa4773
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
zodbtools/zodbdump.py
zodbtools/zodbdump.py
+4
-4
No files found.
zodbtools/zodbdump.py
View file @
1a8a61d3
...
...
@@ -105,19 +105,19 @@ def zodbdump(stor, tidmin, tidmax, hashonly=False, out=asbinstream(sys.stdout)):
objv
=
txnobjv
(
txn
)
for
obj
in
objv
:
entry
=
"obj %s "
%
ashex
(
obj
.
oid
)
entry
=
b
"obj %s "
%
ashex
(
obj
.
oid
)
write_data
=
False
if
obj
.
data
is
None
:
entry
+=
"delete"
entry
+=
b
"delete"
# was undo and data taken from obj.data_txn
elif
obj
.
data_txn
is
not
None
:
entry
+=
"from %s"
%
ashex
(
obj
.
data_txn
)
entry
+=
b
"from %s"
%
ashex
(
obj
.
data_txn
)
else
:
# XXX sha1 is hardcoded for now. Dump format allows other hashes.
entry
+=
"%i sha1:%s"
%
(
len
(
obj
.
data
),
ashex
(
sha1
(
obj
.
data
)))
entry
+=
b
"%i sha1:%s"
%
(
len
(
obj
.
data
),
ashex
(
sha1
(
obj
.
data
)))
write_data
=
True
out
.
write
(
b
(
entry
))
...
...
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