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
8aaebe82
Commit
8aaebe82
authored
Dec 04, 2001
by
Shane Hathaway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge from 2_5 branch
parent
bec1498d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
src/ZODB/Mount.py
src/ZODB/Mount.py
+7
-6
No files found.
src/ZODB/Mount.py
View file @
8aaebe82
...
@@ -12,8 +12,8 @@
...
@@ -12,8 +12,8 @@
##############################################################################
##############################################################################
"""Mounted database support
"""Mounted database support
$Id: Mount.py,v 1.1
1 2001/11/28 15:51:20 matt
Exp $"""
$Id: Mount.py,v 1.1
2 2001/12/04 23:04:14 shane
Exp $"""
__version__
=
'$Revision: 1.1
1
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
2
$'
[
11
:
-
2
]
import
thread
,
Persistence
,
Acquisition
import
thread
,
Persistence
,
Acquisition
import
ExtensionClass
,
string
,
time
,
sys
import
ExtensionClass
,
string
,
time
,
sys
...
@@ -268,13 +268,14 @@ class MountedConnectionCloser:
...
@@ -268,13 +268,14 @@ class MountedConnectionCloser:
self
.
mp
=
None
self
.
mp
=
None
# Detect whether we should close the database.
# Detect whether we should close the database.
close_db
=
self
.
close_db
close_db
=
self
.
close_db
t
=
mp
.
_
v_data
t
=
mp
.
_
_dict__
.
get
(
'_v_data'
,
None
)
if
t
is
not
None
:
if
t
is
not
None
:
mp
.
_v_data
=
None
del
mp
.
__dict__
[
'_v_data'
]
data
=
t
[
0
]
data
=
t
[
0
]
if
not
close_db
and
getattr
(
data
,
'_v__object_deleted__'
,
0
):
if
not
close_db
and
data
.
__dict__
.
get
(
'_v__object_deleted__'
,
0
):
# This mount point has been deleted.
# This mount point has been deleted.
del
data
.
_
v__object_deleted__
del
data
.
_
_dict__
[
'_v__object_deleted__'
]
close_db
=
1
close_db
=
1
# Close the child connection.
# Close the child connection.
try
:
del
conn
.
_mount_parent_jar
try
:
del
conn
.
_mount_parent_jar
...
...
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