mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
configitems: register the 'worker.backgroundclosethreadcount' config
This commit is contained in:
parent
ec7068f984
commit
83aeb84d41
@ -161,3 +161,6 @@ coreconfigitem('worker', 'backgroundclosemaxqueue',
|
||||
coreconfigitem('worker', 'backgroundcloseminfilecount',
|
||||
default=2048,
|
||||
)
|
||||
coreconfigitem('worker', 'backgroundclosethreadcount',
|
||||
default=4,
|
||||
)
|
||||
|
@ -550,7 +550,7 @@ class backgroundfilecloser(object):
|
||||
# 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)
|
||||
|
Loading…
Reference in New Issue
Block a user