# HG changeset patch # User Pierre-Yves David # Date 1498787160 -7200 # Node ID 4531a967e7f1444db754b100f40c91c0c30d12ac # Parent d19804c167101eaa39c0cb71156555081f3ae6b3 configitems: register the 'worker.backgroundclosethreadcount' config diff -r d19804c16710 -r 4531a967e7f1 mercurial/configitems.py --- a/mercurial/configitems.py Fri Jun 30 03:45:59 2017 +0200 +++ b/mercurial/configitems.py Fri Jun 30 03:46:00 2017 +0200 @@ -161,3 +161,6 @@ coreconfigitem('worker', 'backgroundcloseminfilecount', default=2048, ) +coreconfigitem('worker', 'backgroundclosethreadcount', + default=4, +) diff -r d19804c16710 -r 4531a967e7f1 mercurial/vfs.py --- a/mercurial/vfs.py Fri Jun 30 03:45:59 2017 +0200 +++ b/mercurial/vfs.py Fri Jun 30 03:46:00 2017 +0200 @@ -550,7 +550,7 @@ # Windows defaults to a limit of 512 open files. A buffer of 128 # should give us enough headway. maxqueue = ui.configint('worker', 'backgroundclosemaxqueue') - threadcount = ui.configint('worker', 'backgroundclosethreadcount', 4) + threadcount = ui.configint('worker', 'backgroundclosethreadcount') ui.debug('starting %d threads for background file closing\n' % threadcount)