Actions
Bug #54452
openInverted check in RGWRados::check_disk_state()
% Done:
0%
Source:
Tags:
backport_processed
Backport:
quincy
Regression:
No
Severity:
3 - minor
Reviewed:
Description
This code is inverted:
const bool head_pool_found =
get_obj_head_ioctx(dpp, bucket_info, obj, &head_obj_ctx);
if (head_pool_found) {
This is because get_obj_head_ioctx() returns the standard int, where 0 is success. Casting to bool inverts this.
Updated by Daniel Gryniewicz about 2 years ago
- Status changed from New to Fix Under Review
Updated by Daniel Gryniewicz about 2 years ago
- Status changed from Fix Under Review to Pending Backport
Updated by Backport Bot about 2 years ago
- Copied to Backport #54608: quincy: Inverted check in RGWRados::check_disk_state() added
Actions