]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: modify RGWRados::cls_bucket_list_ordered to store dirent key before
authorVedansh Bhartia <vedanshbhartia@gmail.com>
Thu, 18 May 2023 07:58:20 +0000 (13:28 +0530)
committerVedansh Bhartia <vedanshbhartia@gmail.com>
Thu, 18 May 2023 11:06:48 +0000 (16:36 +0530)
commite70e1a7d54c73c9f76794dd43c0cbdd48f3549e6
treebd213e8fe0e60d56f72ef44c95ee770a2e7daea8
parent8c4f52415bddba65e654f3a4f7ba37d98446d202
rgw: modify RGWRados::cls_bucket_list_ordered to store dirent key before
move
There was a use after move issue in RGWRados::cls_bucket_list_ordered
where dirent.key might be logged after it has been moved. This is fixed
by copying the key before the move.

Signed-off-by: Vedansh Bhartia <vedanshbhartia@gmail.com>
src/rgw/driver/rados/rgw_rados.cc