Fixes: https://tracker.ceph.com/issues/49189
Signed-off-by: Dai zhiwei <daizhiwei3@huawei.com>
Signed-off-by: luo rixin <luorixin@huawei.com>
(cherry picked from commit
bfd83e8fa142873a0bdf09a4d1ad1b04127f5885)
int rc = rgwlib.get_fe()->execute_req(&req);
if ((rc == 0) &&
- (req.get_ret() == 0)) {
+ ((rc = req.get_ret()) == 0)) {
lock_guard guard(rgw_fh->mtx);
rgw_fh->set_atime(real_clock::to_timespec(real_clock::now()));
*bytes_read = req.nread;
int rc = rgwlib.get_fe()->execute_req(&req);
if ((rc == 0) &&
- (req.get_ret() == 0)) {
+ ((rc = req.get_ret()) == 0)) {
lock_guard(rgw_fh->mtx);
rgw_fh->set_atime(real_clock::to_timespec(real_clock::now()));
*bytes_read = req.nread;