]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw/rados: create_bucket() passes non-null dpp to get_bucket_info()
authorCasey Bodley <cbodley@redhat.com>
Wed, 16 Apr 2025 19:26:18 +0000 (15:26 -0400)
committerCasey Bodley <cbodley@redhat.com>
Wed, 16 Apr 2025 19:26:22 +0000 (15:26 -0400)
when rgw_beast_enable_async=0, get_bucket_info() crashes on
maybe_warn_about_blocking() when it tries to log to a null
DoutPrefixProvider

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/driver/rados/rgw_rados.cc

index a2016dddf6c836efb500a50f0ba24851ae810dec..546bcee40ad68152dc8bbfcf059b5683dc31ee8f 100644 (file)
@@ -2463,7 +2463,7 @@ int RGWRados::create_bucket(const DoutPrefixProvider* dpp,
     if (ret == -EEXIST) {
        /* we need to reread the info and return it, caller will have a use for it */
       RGWBucketInfo orig_info;
-      int r = get_bucket_info(&svc, bucket.tenant, bucket.name, orig_info, NULL, y, NULL);
+      int r = get_bucket_info(&svc, bucket.tenant, bucket.name, orig_info, NULL, y, dpp);
       if (r < 0) {
         if (r == -ENOENT) {
           continue;