Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
ZEO
Commits
ffd59d00
Commit
ffd59d00
authored
25 years ago
by
Jim Fulton
Browse files
Options
Download
Email Patches
Plain Diff
Added some incremental GC calls.
parent
9adbc8bc
Changes
1
Hide 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
...
...
This diff is collapsed.
Click to expand it.
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