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
695dd334
Commit
695dd334
authored
Aug 12, 2002
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure current transaction is aborted on close.
XXX This makes CommitLockTests pass on Win2k for me.
parent
1f9a2369
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
src/ZEO/StorageServer.py
src/ZEO/StorageServer.py
+7
-0
No files found.
src/ZEO/StorageServer.py
View file @
695dd334
...
...
@@ -115,6 +115,8 @@ class StorageServer:
removed
=
1
class
ZEOStorage
:
"""Proxy to underlying storage for a single remote client."""
def
__init__
(
self
,
server
):
self
.
server
=
server
self
.
client
=
None
...
...
@@ -124,6 +126,11 @@ class ZEOStorage:
self
.
_transaction
=
None
def
close
(
self
):
# When this storage closes, we must ensure that it aborts
# any pending transaction. Not sure if this is the clearest way.
if
self
.
_transaction
is
not
None
:
self
.
__storage
.
tpc_abort
(
self
.
_transaction
)
self
.
_transaction
is
None
self
.
_conn
.
close
()
def
notifyConnected
(
self
,
conn
):
...
...
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