turn-off Nlink readdir() optimization for NFS/CIFS (#19420)

fixes #19418
fixes #19416
This commit is contained in:
Harshavardhana
2024-04-05 08:17:08 -07:00
committed by GitHub
parent 96d226c0b1
commit a207bd6790
5 changed files with 28 additions and 21 deletions

View File

@@ -21,7 +21,7 @@
package cmd
// isDirEmpty - returns true if there is no error and no object and prefix inside this directory
func isDirEmpty(dirname string) bool {
func isDirEmpty(dirname string, _ bool) bool {
entries, err := readDirN(dirname, 1)
if err != nil {
return false