perf: release lock after transaction in perffncachewrite
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Thu, 11 Aug 2016 14:51:19 +0200
changeset 30069 98b9846a131e
parent 30068 a76d5ba7ac43
child 30070 3006d0d26ad3
perf: release lock after transaction in perffncachewrite The transaction should be closed within the lock.
contrib/perf.py
--- a/contrib/perf.py	Tue Aug 23 23:47:59 2016 +0200
+++ b/contrib/perf.py	Thu Aug 11 14:51:19 2016 +0200
@@ -575,8 +575,8 @@
         s.fncache._dirty = True
         s.fncache.write(tr)
     timer(d)
+    tr.close()
     lock.release()
-    tr.close()
     fm.end()
 
 @command('perffncacheencode', formatteropts)