fs: Avoid non-idempotent code flow in ListBuckets() (#4798)
Under the call flow ``` Readdir + | | | path-entry | | v StatDir ``` Existing code was written in a manner where say a bucket/top-level directory was indeed deleted between Readdir() and before StatDir() we would ignore certain errors. This is not a plausible situation and might not happen in almost all practical cases. We do not have to look for or interpret these errors returned by StatDir() instead we can just collect the successful values and return back to the client. We do not need to pre-maturely decide on bucket access we just let filesystem decide subsequently for real I/O operations. Refer #4658master
parent
3ff09b9b72
commit
e7cdd8f02c
Loading…
Reference in new issue