]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: avoid use-after-move in RGWDataSyncSingleEntryCR ctor 59319/head
authorCasey Bodley <cbodley@redhat.com>
Thu, 1 Sep 2022 14:43:39 +0000 (10:43 -0400)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Mon, 19 Aug 2024 16:33:17 +0000 (23:33 +0700)
commite89f61e76117826c938edc7f17f7adddfb458e44
tree0b481e9c6e9ebc62ca874950e232a26c31a7d7fb
parent6a16782a86d951842d79036fdfaf36626c7aea65
rgw: avoid use-after-move in RGWDataSyncSingleEntryCR ctor

the constructor body below accesses the constructor's 'obligation'
parameter instead of the member variable it was moved into

Fixes: https://tracker.ceph.com/issues/57329
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit a4c2e6310d4fc41f99208c80525afe25412218c5)
src/rgw/rgw_data_sync.cc