Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
nexedi
ZEO
Commits
d5ecd637
Commit
d5ecd637
authored
22 years ago
by
Jeremy Hylton
Browse files
Options
Download
Email Patches
Plain Diff
Add transaction id to report.
parent
4d8bfaba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/scripts/fsrefs.py
src/scripts/fsrefs.py
+4
-0
No files found.
src/scripts/fsrefs.py
View file @
d5ecd637
...
...
@@ -23,6 +23,7 @@ for storages that use versions.
"""
from
ZODB.FileStorage
import
FileStorage
from
ZODB.TimeStamp
import
TimeStamp
from
ZODB.utils
import
u64
from
ZODB.fsdump
import
get_pickle_metadata
...
...
@@ -45,7 +46,9 @@ def report(oid, data, serial, fs, missing):
plural
=
"s"
else
:
plural
=
""
ts
=
TimeStamp
(
serial
)
print
"oid %s %s.%s"
%
(
hex
(
u64
(
oid
)),
from_mod
,
from_class
)
print
"last updated: %s, tid=%s"
%
(
ts
,
hex
(
u64
(
serial
)))
print
"refers to unknown object%s:"
%
plural
for
oid
,
info
in
missing
:
if
isinstance
(
info
,
types
.
TupleType
):
...
...
@@ -53,6 +56,7 @@ def report(oid, data, serial, fs, missing):
else
:
description
=
str
(
info
)
print
"
\t
oid %s: %s"
%
(
hex
(
u64
(
oid
)),
description
)
print
def
main
(
path
):
fs
=
FileStorage
(
path
,
read_only
=
1
)
...
...
This diff is collapsed.
Click to expand it.
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