From: Casey Bodley Date: Fri, 11 Feb 2022 22:18:32 +0000 (-0500) Subject: rgw: stop using c++20 keyword 'requires' X-Git-Tag: v18.0.0~1151^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=46f4c5c088a918f000ef4d34adbe81e8b44ff3b9;p=ceph.git rgw: stop using c++20 keyword 'requires' Signed-off-by: Casey Bodley --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index a9b3de45957d..429c60dd551d 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -668,15 +668,15 @@ int RGWRados::get_required_alignment(const DoutPrefixProvider *dpp, const rgw_po return r; } - bool requires; - r = ioctx.pool_requires_alignment2(&requires); + bool req; + r = ioctx.pool_requires_alignment2(&req); if (r < 0) { ldpp_dout(dpp, 0) << "ERROR: ioctx.pool_requires_alignment2() returned " << r << dendl; return r; } - if (!requires) { + if (!req) { *alignment = 0; return 0; }