perf: close transaction in perffncachewrite

This fixes a bug, and brings CPython behaviour on this test into
line with PyPy.
This commit is contained in:
Bryan O'Sullivan 2015-12-27 23:55:54 +09:00
parent 6d56e2235c
commit 7cd156ddd3
2 changed files with 1 additions and 2 deletions

View File

@ -441,6 +441,7 @@ def perffncachewrite(ui, repo, **opts):
s.fncache.write(tr)
timer(d)
lock.release()
tr.close()
fm.end()
@command('perffncacheencode', formatteropts)

View File

@ -123,8 +123,6 @@ perfstatus
$ hg perffncacheencode
$ hg perffncacheload
$ hg perffncachewrite
transaction abort!
rollback completed
$ hg perfheads
$ hg perfindex
$ hg perfloadmarkers