From: Adam C. Emerson Date: Thu, 19 Mar 2026 21:31:47 +0000 (-0400) Subject: rgw/dbstore: Trivially remove VLA from dbstore main X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7b064a0490e00456fa0585c9c2316102f144d58e;p=ceph.git rgw/dbstore: Trivially remove VLA from dbstore main Replacing the dimensions of an array that had been a regular int with a constexpr. Signed-off-by: Adam C. Emerson --- diff --git a/src/rgw/driver/dbstore/dbstore_main.cc b/src/rgw/driver/dbstore/dbstore_main.cc index 46d4106ca436..7f11bb617eb6 100644 --- a/src/rgw/driver/dbstore/dbstore_main.cc +++ b/src/rgw/driver/dbstore/dbstore_main.cc @@ -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];