]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: stop using c++20 keyword 'requires' 45515/head
authorCasey Bodley <cbodley@redhat.com>
Fri, 11 Feb 2022 22:18:32 +0000 (17:18 -0500)
committerKefu Chai <tchaikov@gmail.com>
Fri, 25 Mar 2022 04:29:09 +0000 (12:29 +0800)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_rados.cc

index a9b3de45957d7f0c79b95a28046e31e3403e097c..429c60dd551d2d8daa7f593203729c6b20df1084 100644 (file)
@@ -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;
   }