From 46f4c5c088a918f000ef4d34adbe81e8b44ff3b9 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Fri, 11 Feb 2022 17:18:32 -0500 Subject: [PATCH] rgw: stop using c++20 keyword 'requires' Signed-off-by: Casey Bodley --- src/rgw/rgw_rados.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } -- 2.47.3