From: Radoslaw Zarzynski Date: Thu, 17 Nov 2016 17:22:32 +0000 (+0100) Subject: rgw: switch from g_conf to req_state::cct::_conf in RGWListBuckets_ObjStore_SWIFT. X-Git-Tag: v11.1.0~121^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=1d7e94b2afbadb661214480f3edb21d4462bd768;p=ceph-ci.git rgw: switch from g_conf to req_state::cct::_conf in RGWListBuckets_ObjStore_SWIFT. Signed-off-by: Radoslaw Zarzynski --- diff --git a/src/rgw/rgw_rest_swift.cc b/src/rgw/rgw_rest_swift.cc index 874663246ac..54494c5781d 100644 --- a/src/rgw/rgw_rest_swift.cc +++ b/src/rgw/rgw_rest_swift.cc @@ -146,7 +146,7 @@ void RGWListBuckets_ObjStore_SWIFT::send_response_begin(bool has_buckets) set_req_state_err(s, op_ret); } - if (!g_conf->rgw_swift_enforce_content_length) { + if (! s->cct->_conf->rgw_swift_enforce_content_length) { /* Adding account stats in the header to keep align with Swift API */ dump_account_metadata(s, buckets_count, @@ -192,7 +192,7 @@ void RGWListBuckets_ObjStore_SWIFT::send_response_data(RGWUserBuckets& buckets) s->formatter->dump_int("bytes", obj.size); } s->formatter->close_section(); - if (! g_conf->rgw_swift_enforce_content_length) { + if (! s->cct->_conf->rgw_swift_enforce_content_length) { rgw_flush_formatter(s, s->formatter); } } @@ -204,7 +204,7 @@ void RGWListBuckets_ObjStore_SWIFT::send_response_end() s->formatter->close_section(); } - if (g_conf->rgw_swift_enforce_content_length) { + if (s->cct->_conf->rgw_swift_enforce_content_length) { /* Adding account stats in the header to keep align with Swift API */ dump_account_metadata(s, buckets_count, @@ -218,7 +218,7 @@ void RGWListBuckets_ObjStore_SWIFT::send_response_end() end_header(s, NULL, NULL, s->formatter->get_len(), true); } - if (sent_data || g_conf->rgw_swift_enforce_content_length) { + if (sent_data || s->cct->_conf->rgw_swift_enforce_content_length) { rgw_flush_formatter_and_reset(s, s->formatter); } }