Set transaction description properly. Bug 4672

svn: r16734
This commit is contained in:
Gary Burton 2011-02-28 21:02:42 +00:00
parent 4d0f6232e6
commit 9565f997f0

View File

@ -360,9 +360,8 @@ class BatchOp(UpdateCallback):
Should not be overridden without good reasons.
"""
self.db.disable_signals()
with DbTxn("", self.db, batch=True) as self.trans:
with DbTxn(self.title, self.db, batch=True) as self.trans:
success = self._run()
trans.set_description(self.title)
self.db.enable_signals()
self.db.request_rebuild()
return success