hpcc-systems/HPCC-Platform — pull request #4739 by jakesmith (2013-08-13 17:09:19+00:00)
Title: HPCC-9588 - Avoid holding onto lots of open files

XRef's 'Delete Empty Directories' causes all sub directories to
be collated, then themselves recursed, leaving each open and in
use. This commit, opens and recurses the sub directory then
ensures it's released(closed) before moving on.
This should greatly reduce the # of concurent open files this
process uses, which in environments with many sibling directories
and depth, was causing 1000's of open sockets and handles to
dafilesrv.

Signed-off-by: Jake Smith