@@ -407,10 +407,10 @@ RGWPubSub::RGWPubSub(rgw::sal::Driver* _driver, const std::string& _tenant)
407407 : driver(_driver), tenant(_tenant)
408408{}
409409
410- int RGWPubSub::read_topics (const DoutPrefixProvider *dpp, rgw_pubsub_topics * result,
410+ int RGWPubSub::read_topics (const DoutPrefixProvider *dpp, rgw_pubsub_topics& result,
411411 RGWObjVersionTracker *objv_tracker, optional_yield y) const
412412{
413- const int ret = driver->read_topics (tenant, * result, objv_tracker, y, dpp);
413+ const int ret = driver->read_topics (tenant, result, objv_tracker, y, dpp);
414414 if (ret < 0 ) {
415415 ldpp_dout (dpp, 10 ) << " WARNING: failed to read topics info: ret=" << ret << dendl;
416416 return ret;
@@ -429,10 +429,10 @@ int RGWPubSub::write_topics(const DoutPrefixProvider *dpp, const rgw_pubsub_topi
429429 return 0 ;
430430}
431431
432- int RGWPubSub::Bucket::read_topics (const DoutPrefixProvider *dpp, rgw_pubsub_bucket_topics * result,
432+ int RGWPubSub::Bucket::read_topics (const DoutPrefixProvider *dpp, rgw_pubsub_bucket_topics& result,
433433 RGWObjVersionTracker *objv_tracker, optional_yield y) const
434434{
435- const int ret = bucket->read_topics (* result, objv_tracker, y, dpp);
435+ const int ret = bucket->read_topics (result, objv_tracker, y, dpp);
436436 if (ret < 0 && ret != -ENOENT) {
437437 ldpp_dout (dpp, 1 ) << " ERROR: failed to read bucket topics info: ret=" << ret << dendl;
438438 return ret;
@@ -453,10 +453,10 @@ int RGWPubSub::Bucket::write_topics(const DoutPrefixProvider *dpp, const rgw_pub
453453 return 0 ;
454454}
455455
456- int RGWPubSub::get_topic (const DoutPrefixProvider *dpp, const std::string& name, rgw_pubsub_topic * result, optional_yield y) const
456+ int RGWPubSub::get_topic (const DoutPrefixProvider *dpp, const std::string& name, rgw_pubsub_topic& result, optional_yield y) const
457457{
458458 rgw_pubsub_topics topics;
459- const int ret = read_topics (dpp, & topics, nullptr , y);
459+ const int ret = read_topics (dpp, topics, nullptr , y);
460460 if (ret < 0 ) {
461461 ldpp_dout (dpp, 1 ) << " ERROR: failed to read topics info: ret=" << ret << dendl;
462462 return ret;
@@ -468,7 +468,7 @@ int RGWPubSub::get_topic(const DoutPrefixProvider *dpp, const std::string& name,
468468 return -ENOENT;
469469 }
470470
471- * result = iter->second ;
471+ result = iter->second ;
472472 return 0 ;
473473}
474474
@@ -481,7 +481,7 @@ int RGWPubSub::Bucket::create_notification(const DoutPrefixProvider *dpp, const
481481 const rgw::notify::EventTypeList& events, OptionalFilter s3_filter, const std::string& notif_name, optional_yield y) const {
482482 rgw_pubsub_topic topic_info;
483483
484- int ret = ps.get_topic (dpp, topic_name, & topic_info, y);
484+ int ret = ps.get_topic (dpp, topic_name, topic_info, y);
485485 if (ret < 0 ) {
486486 ldpp_dout (dpp, 1 ) << " ERROR: failed to read topic '" << topic_name << " ' info: ret=" << ret << dendl;
487487 return ret;
@@ -491,7 +491,7 @@ int RGWPubSub::Bucket::create_notification(const DoutPrefixProvider *dpp, const
491491 RGWObjVersionTracker objv_tracker;
492492 rgw_pubsub_bucket_topics bucket_topics;
493493
494- ret = read_topics (dpp, & bucket_topics, &objv_tracker, y);
494+ ret = read_topics (dpp, bucket_topics, &objv_tracker, y);
495495 if (ret < 0 ) {
496496 ldpp_dout (dpp, 1 ) << " ERROR: failed to read topics from bucket '" <<
497497 bucket->get_name () << " ': ret=" << ret << dendl;
@@ -524,7 +524,7 @@ int RGWPubSub::Bucket::remove_notification(const DoutPrefixProvider *dpp, const
524524 RGWObjVersionTracker objv_tracker;
525525 rgw_pubsub_bucket_topics bucket_topics;
526526
527- auto ret = read_topics (dpp, & bucket_topics, &objv_tracker, y);
527+ auto ret = read_topics (dpp, bucket_topics, &objv_tracker, y);
528528 if (ret < 0 ) {
529529 ldpp_dout (dpp, 1 ) << " ERROR: failed to read bucket topics info: ret=" << ret << dendl;
530530 return ret;
@@ -559,7 +559,7 @@ int RGWPubSub::Bucket::remove_notifications(const DoutPrefixProvider *dpp, optio
559559{
560560 // get all topics on a bucket
561561 rgw_pubsub_bucket_topics bucket_topics;
562- auto ret = get_topics (dpp, & bucket_topics, y);
562+ auto ret = get_topics (dpp, bucket_topics, y);
563563 if (ret < 0 && ret != -ENOENT) {
564564 ldpp_dout (dpp, 1 ) << " ERROR: failed to get list of topics from bucket '" << bucket->get_name () << " ', ret=" << ret << dendl;
565565 return ret ;
@@ -593,7 +593,7 @@ int RGWPubSub::create_topic(const DoutPrefixProvider *dpp, const std::string& na
593593 RGWObjVersionTracker objv_tracker;
594594 rgw_pubsub_topics topics;
595595
596- int ret = read_topics (dpp, & topics, &objv_tracker, y);
596+ int ret = read_topics (dpp, topics, &objv_tracker, y);
597597 if (ret < 0 && ret != -ENOENT) {
598598 // its not an error if not topics exist, we create one
599599 ldpp_dout (dpp, 1 ) << " ERROR: failed to read topics info: ret=" << ret << dendl;
@@ -621,7 +621,7 @@ int RGWPubSub::remove_topic(const DoutPrefixProvider *dpp, const std::string& na
621621 RGWObjVersionTracker objv_tracker;
622622 rgw_pubsub_topics topics;
623623
624- int ret = read_topics (dpp, & topics, &objv_tracker, y);
624+ int ret = read_topics (dpp, topics, &objv_tracker, y);
625625 if (ret < 0 && ret != -ENOENT) {
626626 ldpp_dout (dpp, 1 ) << " ERROR: failed to read topics info: ret=" << ret << dendl;
627627 return ret;
0 commit comments