Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Zope
Commits
50320274
Commit
50320274
authored
Oct 21, 2012
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backport c122072 from trunk - close databases on shutdown to write out .index file
parent
52ad803b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
doc/CHANGES.rst
doc/CHANGES.rst
+5
-2
src/Zope2/App/startup.py
src/Zope2/App/startup.py
+1
-1
src/Zope2/Startup/__init__.py
src/Zope2/Startup/__init__.py
+3
-0
No files found.
doc/CHANGES.rst
View file @
50320274
...
@@ -8,12 +8,15 @@ http://docs.zope.org/zope2/releases/.
...
@@ -8,12 +8,15 @@ http://docs.zope.org/zope2/releases/.
2.13.19 (unreleased)
2.13.19 (unreleased)
--------------------
--------------------
- LP #930812: Scrub headers a bit more.
- Updated distributions:
- Updated distributions:
- tempstorage = 2.12.2
- tempstorage = 2.12.2
- Explicitly close all databases on shutdown, which ensures `Data.fs.index`
gets written to the file system.
- LP #930812: Scrub headers a bit more.
- Fix lock and pid file handling on Windows. On other platforms
- Fix lock and pid file handling on Windows. On other platforms
starting Zope tolerated existing or locked files, this now also
starting Zope tolerated existing or locked files, this now also
works on Windows.
works on Windows.
...
...
src/Zope2/App/startup.py
View file @
50320274
...
@@ -76,7 +76,7 @@ def startup():
...
@@ -76,7 +76,7 @@ def startup():
m
=
imp
.
find_module
(
'custom_zodb'
,[
configuration
.
testinghome
])
m
=
imp
.
find_module
(
'custom_zodb'
,[
configuration
.
testinghome
])
except
:
except
:
m
=
imp
.
find_module
(
'custom_zodb'
,[
configuration
.
instancehome
])
m
=
imp
.
find_module
(
'custom_zodb'
,[
configuration
.
instancehome
])
except
:
except
Exception
:
# if there is no custom_zodb, use the config file specified databases
# if there is no custom_zodb, use the config file specified databases
DB
=
dbtab
.
getDatabase
(
'/'
,
is_root
=
1
)
DB
=
dbtab
.
getDatabase
(
'/'
,
is_root
=
1
)
else
:
else
:
...
...
src/Zope2/Startup/__init__.py
View file @
50320274
...
@@ -108,6 +108,9 @@ class ZopeStarter:
...
@@ -108,6 +108,9 @@ class ZopeStarter:
self
.
shutdown
()
self
.
shutdown
()
def
shutdown
(
self
):
def
shutdown
(
self
):
databases
=
getattr
(
self
.
cfg
.
dbtab
,
'databases'
,
{})
for
db
in
databases
.
values
():
db
.
close
()
self
.
unlinkLockFile
()
self
.
unlinkLockFile
()
self
.
unlinkPidFile
()
self
.
unlinkPidFile
()
...
...
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