]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: readdir_r_cb: get rstat for dir only if using rbytes for size
authorPinghao Wu <xdavidwuph@gmail.com>
Tue, 5 Jul 2022 08:19:26 +0000 (16:19 +0800)
committerRishabh Dave <ridave@redhat.com>
Thu, 13 Jul 2023 08:45:21 +0000 (14:15 +0530)
commit69decabd7571f7f0fa07a575ce44c4b965e21209
tree6b9fff246923a92607b1cf3d71f76124cb350af2
parentb682861f8690608d831f58603303388dd7915aa7
client: readdir_r_cb: get rstat for dir only if using rbytes for size

When `client_dirsize_rbytes` is off, there should be no need for getting
rstat on readdir operations.

This fixes performance when `client_dirsize_rbytes` is off after #38222.

Fixes: https://tracker.ceph.com/issues/61999
Signed-off-by: Pinghao Wu <xdavidwuph@gmail.com>
src/client/Client.cc