changeset 30069:98b9846a131e

perf: release lock after transaction in perffncachewrite The transaction should be closed within the lock.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Thu, 11 Aug 2016 14:51:19 +0200
parents a76d5ba7ac43
children 3006d0d26ad3
files contrib/perf.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)