configitems: register the 'worker.backgroundclosemaxqueue' config
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 30 Jun 2017 03:45:58 +0200
changeset 33230 5dcbd2045dcb
parent 33229 dd50a370c8cb
child 33231 d19804c16710
configitems: register the 'worker.backgroundclosemaxqueue' config
mercurial/configitems.py
mercurial/vfs.py
--- a/mercurial/configitems.py	Fri Jun 30 03:43:35 2017 +0200
+++ b/mercurial/configitems.py	Fri Jun 30 03:45:58 2017 +0200
@@ -155,3 +155,6 @@
 coreconfigitem('ui', 'quiet',
     default=False,
 )
+coreconfigitem('worker', 'backgroundclosemaxqueue',
+    default=384,
+)
--- a/mercurial/vfs.py	Fri Jun 30 03:43:35 2017 +0200
+++ b/mercurial/vfs.py	Fri Jun 30 03:45:58 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', 384)
+        maxqueue = ui.configint('worker', 'backgroundclosemaxqueue')
         threadcount = ui.configint('worker', 'backgroundclosethreadcount', 4)
 
         ui.debug('starting %d threads for background file closing\n' %