mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 23:07:18 +03:00
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:
parent
6d56e2235c
commit
7cd156ddd3
@ -441,6 +441,7 @@ def perffncachewrite(ui, repo, **opts):
|
||||
s.fncache.write(tr)
|
||||
timer(d)
|
||||
lock.release()
|
||||
tr.close()
|
||||
fm.end()
|
||||
|
||||
@command('perffncacheencode', formatteropts)
|
||||
|
@ -123,8 +123,6 @@ perfstatus
|
||||
$ hg perffncacheencode
|
||||
$ hg perffncacheload
|
||||
$ hg perffncachewrite
|
||||
transaction abort!
|
||||
rollback completed
|
||||
$ hg perfheads
|
||||
$ hg perfindex
|
||||
$ hg perfloadmarkers
|
||||
|
Loading…
Reference in New Issue
Block a user