Ticket 50664 - DS can fail to recover if an empty directory exists in db
Bug Description: In count_dbfiles_in_dir, when the recurse option is set
to false, the counter was zerod. Depending on the opendir (inode, dirent)
ordering of directories in a be folder (ie userRoot), this could cause
an empty directory to be examined last via the recurse option, when then
would clear the counter. If the counter is cleared, the server believes
no db files exist.
Fix Description: Remove the counter-zeroing on recurse == false which
requires us to check the original caller DOES zero the value (I checked,
it does).
https://pagure.io/389-ds-base/issue/50664
Author: William Brown <william@blackhats.net.au>, Thomas E Lackey <telackey@bozemanpass.com>
Review by: ???