Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
Kirill Smelkov
ZODB
Commits
08b7b2c2
Commit
08b7b2c2
authored
Nov 18, 2002
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't every load the root when using --nowrite, just use load().
parent
5e30713c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
src/scripts/zeoup.py
src/scripts/zeoup.py
+8
-5
No files found.
src/scripts/zeoup.py
View file @
08b7b2c2
...
...
@@ -46,17 +46,20 @@ def check_server(addr, storage, write):
# is called. The only thing we care about, though, is that
# registerDB() calls _startup().
db
=
ZODB
.
DB
(
cs
)
cn
=
db
.
open
()
root
=
cn
.
root
()
if
write
:
db
=
ZODB
.
DB
(
cs
)
cn
=
db
.
open
()
root
=
cn
.
root
()
try
:
root
[
'zeoup'
]
=
root
.
get
(
'zeoup'
,
0
)
+
1
get_transaction
().
commit
()
except
ConflictError
:
pass
cn
.
close
()
db
.
close
()
cn
.
close
()
db
.
close
()
else
:
data
,
serial
=
cs
.
load
(
"
\
0
\
0
\
0
\
0
\
0
\
0
\
0
\
0
"
,
""
)
def
usage
(
exit
=
1
):
print
__doc__
...
...
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