Skip to content

Commit

Permalink
When _commit()ing inside of a lock, only sync data properties if they…
Browse files Browse the repository at this point in the history
… are available
  • Loading branch information
ketralnis committed Aug 10, 2009
1 parent 52a5712 commit b066246
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion r2/r2/lib/db/thing.py
Expand Up @@ -147,7 +147,9 @@ def _sync_latest(self):
#copy in the cache's version
for prop in self._base_props:
self.__setattr__(prop, getattr(other_self, prop), False)
self._t = other_self._t

if other_self._loaded:
self._t = other_self._t

#re-apply the .dirties
old_dirties = self._dirties
Expand Down

0 comments on commit b066246

Please sign in to comment.