##// END OF EJS Templates
configitems: register the 'worker.backgroundclosethreadcount' config
marmoute -
r33229:4531a967 default
parent child Browse files
Show More
@@ -161,3 +161,6 b" coreconfigitem('worker', 'backgroundclos"
161 coreconfigitem('worker', 'backgroundcloseminfilecount',
161 coreconfigitem('worker', 'backgroundcloseminfilecount',
162 default=2048,
162 default=2048,
163 )
163 )
164 coreconfigitem('worker', 'backgroundclosethreadcount',
165 default=4,
166 )
@@ -550,7 +550,7 b' class backgroundfilecloser(object):'
550 # Windows defaults to a limit of 512 open files. A buffer of 128
550 # Windows defaults to a limit of 512 open files. A buffer of 128
551 # should give us enough headway.
551 # should give us enough headway.
552 maxqueue = ui.configint('worker', 'backgroundclosemaxqueue')
552 maxqueue = ui.configint('worker', 'backgroundclosemaxqueue')
553 threadcount = ui.configint('worker', 'backgroundclosethreadcount', 4)
553 threadcount = ui.configint('worker', 'backgroundclosethreadcount')
554
554
555 ui.debug('starting %d threads for background file closing\n' %
555 ui.debug('starting %d threads for background file closing\n' %
556 threadcount)
556 threadcount)
General Comments 0
You need to be logged in to leave comments. Login now