Commit 71df526e authored by Jim Fulton's avatar Jim Fulton

Move incrgc from newTransaction to afterCompletion

Where it makes more sense. Hysterically, it didn't matter because one
was an alias for the other.
parent 8c4c5a61
...@@ -746,9 +746,6 @@ class Connection(ExportImport, object): ...@@ -746,9 +746,6 @@ class Connection(ExportImport, object):
except AttributeError: except AttributeError:
assert self._storage is None assert self._storage is None
# Now is a good time to collect some garbage.
self._cache.incrgc()
def afterCompletion(self, transaction): def afterCompletion(self, transaction):
# Note that we we call newTransaction here for 2 reasons: # Note that we we call newTransaction here for 2 reasons:
# a) Applying invalidations early frees up resources # a) Applying invalidations early frees up resources
...@@ -764,6 +761,9 @@ class Connection(ExportImport, object): ...@@ -764,6 +761,9 @@ class Connection(ExportImport, object):
if not self.explicit_transactions: if not self.explicit_transactions:
self.newTransaction(transaction, False) self.newTransaction(transaction, False)
# Now is a good time to collect some garbage.
self._cache.incrgc()
# Transaction-manager synchronization -- ISynchronizer # Transaction-manager synchronization -- ISynchronizer
########################################################################## ##########################################################################
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment