Fixed flush protection for instances, memory is successfully made available on an idmapper flush now.

This commit is contained in:
Griatch 2014-05-17 14:38:43 +02:00
parent 4b8ed234fd
commit 58af67bdf2
6 changed files with 47 additions and 35 deletions

View file

@ -1088,7 +1088,7 @@ class Exit(Object):
if self.ndb.exit_reset or not self.cmdset.has_cmdset("_exitset", must_be_default=True):
# we are resetting, or no exit-cmdset was set. Create one dynamically.
self.cmdset.add_default(self.create_exit_cmdset(self.dbobj), permanent=False)
self.ndb.exit_reset = False
del self.ndb.exit_reset
# this and other hooks are what usually can be modified safely.