From c0c8b993b2e0cdcc8c442c7c433b4c20d34be5f4 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Wed, 16 Apr 2025 15:26:18 -0400 Subject: [PATCH] rgw/rados: create_bucket() passes non-null dpp to get_bucket_info() 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 --- src/rgw/driver/rados/rgw_rados.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/driver/rados/rgw_rados.cc b/src/rgw/driver/rados/rgw_rados.cc index a2016dddf6c..546bcee40ad 100644 --- a/src/rgw/driver/rados/rgw_rados.cc +++ b/src/rgw/driver/rados/rgw_rados.cc @@ -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; -- 2.39.5