Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
092a072b
Commit
092a072b
authored
Dec 02, 2002
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not raise exception for redundant pack.
And whitespace normalization.
parent
5dcd9b1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
src/ZODB/FileStorage.py
src/ZODB/FileStorage.py
+5
-7
No files found.
src/ZODB/FileStorage.py
View file @
092a072b
...
@@ -115,7 +115,7 @@
...
@@ -115,7 +115,7 @@
# may have a back pointer to a version record or to a non-version
# may have a back pointer to a version record or to a non-version
# record.
# record.
#
#
__version__
=
'$Revision: 1.11
7
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.11
8
$'
[
11
:
-
2
]
import
base64
import
base64
from
cPickle
import
Pickler
,
Unpickler
,
loads
from
cPickle
import
Pickler
,
Unpickler
,
loads
...
@@ -1356,9 +1356,9 @@ class FileStorage(BaseStorage.BaseStorage,
...
@@ -1356,9 +1356,9 @@ class FileStorage(BaseStorage.BaseStorage,
def
_redundant_pack
(
self
,
file
,
pos
):
def
_redundant_pack
(
self
,
file
,
pos
):
assert
pos
>
8
,
pos
assert
pos
>
8
,
pos
file
.
seek
(
pos
-
8
)
file
.
seek
(
pos
-
8
)
p
=
U64
(
file
.
read
(
8
))
p
=
U64
(
file
.
read
(
8
))
file
.
seek
(
pos
-
p
+
8
)
file
.
seek
(
pos
-
p
+
8
)
return
file
.
read
(
1
)
not
in
' u'
return
file
.
read
(
1
)
not
in
' u'
def
pack
(
self
,
t
,
referencesf
):
def
pack
(
self
,
t
,
referencesf
):
...
@@ -1410,9 +1410,7 @@ class FileStorage(BaseStorage.BaseStorage,
...
@@ -1410,9 +1410,7 @@ class FileStorage(BaseStorage.BaseStorage,
if
packpos
==
4
:
if
packpos
==
4
:
return
return
if
self
.
_redundant_pack
(
file
,
packpos
):
if
self
.
_redundant_pack
(
file
,
packpos
):
raise
FileStorageError
,
(
return
'The database has already been packed to a later time
\
n
'
'or no changes have been made since the last pack'
)
rootl
=
[
z64
]
rootl
=
[
z64
]
pop
=
rootl
.
pop
pop
=
rootl
.
pop
...
...
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