]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/dbstore: Trivially remove VLA from dbstore main
authorAdam C. Emerson <aemerson@redhat.com>
Thu, 19 Mar 2026 21:31:47 +0000 (17:31 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Thu, 26 Mar 2026 04:07:20 +0000 (00:07 -0400)
Replacing the dimensions of an array that had been a regular int with
a constexpr.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/rgw/driver/dbstore/dbstore_main.cc

index 46d4106ca436afd328018aed07c4f39b3c3c6926..7f11bb617eb6fbaebf89ebc12a6a89020a470e12 100644 (file)
@@ -134,7 +134,7 @@ int main(int argc, char *argv[])
   void *res;
 
   pthread_attr_t attr;
-  int num_thr = 2;
+  static constexpr int num_thr = 2;
   pthread_t threads[num_thr];
   struct thr_args t_args[num_thr];