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
ffd59d00
Commit
ffd59d00
authored
Oct 07, 1999
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added some incremental GC calls.
parent
9adbc8bc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
src/ZODB/Connection.py
src/ZODB/Connection.py
+5
-3
No files found.
src/ZODB/Connection.py
View file @
ffd59d00
...
...
@@ -84,8 +84,8 @@
##############################################################################
"""Database connection support
$Id: Connection.py,v 1.2
6 1999/09/24 21:32:52 amos
Exp $"""
__version__
=
'$Revision: 1.2
6
$'
[
11
:
-
2
]
$Id: Connection.py,v 1.2
7 1999/10/07 14:17:50 jim
Exp $"""
__version__
=
'$Revision: 1.2
7
$'
[
11
:
-
2
]
from
cPickleCache
import
PickleCache
from
POSException
import
ConflictError
,
ExportError
...
...
@@ -228,7 +228,7 @@ class Connection(ExportImport.ExportImport):
def
cacheMinimize
(
self
,
dt
=
0
):
self
.
_cache
.
minimize
(
dt
)
def
close
(
self
):
self
.
_incrgc
()
self
.
_incrgc
()
# This is a good time to do some GC
db
=
self
.
_db
self
.
_db
=
self
.
_storage
=
self
.
_tmp
=
self
.
new_oid
=
self
.
_opened
=
None
self
.
_debug_info
=
()
...
...
@@ -468,6 +468,7 @@ class Connection(ExportImport.ExportImport):
def
tpc_finish
(
self
,
transaction
):
self
.
_storage
.
tpc_finish
(
transaction
,
self
.
tpc_finish_
)
self
.
_cache
.
invalidate
(
self
.
_invalidated
)
self
.
_incrgc
()
# This is a good time to do some GC
def
tpc_finish_
(
self
):
invalidate
=
self
.
_db
.
invalidate
...
...
@@ -476,6 +477,7 @@ class Connection(ExportImport.ExportImport):
def
sync
(
self
):
get_transaction
().
abort
()
self
.
_cache
.
invalidate
(
self
.
_invalidated
)
self
.
_incrgc
()
# This is a good time to do some GC
def
getDebugInfo
(
self
):
return
self
.
_debug_info
def
setDebugInfo
(
self
,
*
args
):
self
.
_debug_info
=
self
.
_debug_info
+
args
...
...
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