From: Matt Benjamin Date: Thu, 16 Sep 2021 15:11:16 +0000 (-0400) Subject: rgw:sal: implement (placeholder) get_cluster_fsid in DBStore X-Git-Tag: v17.1.0~264^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a4b28946bffec840b29e5c320ecdbe0fb37bb799;p=ceph.git rgw:sal: implement (placeholder) get_cluster_fsid in DBStore Signed-off-by: Matt Benjamin --- diff --git a/src/rgw/rgw_sal_dbstore.cc b/src/rgw/rgw_sal_dbstore.cc index 92f85b641e09..b3532a59b909 100644 --- a/src/rgw/rgw_sal_dbstore.cc +++ b/src/rgw/rgw_sal_dbstore.cc @@ -1103,6 +1103,11 @@ namespace rgw::sal { return 0; } + std::string DBStore::get_cluster_id(const DoutPrefixProvider* dpp, optional_yield y) + { + return "PLACEHOLDER"; // for instance unique identifier + } + std::unique_ptr DBStore::get_object(const rgw_obj_key& k) { return std::make_unique(this, k); diff --git a/src/rgw/rgw_sal_dbstore.h b/src/rgw/rgw_sal_dbstore.h index 8007b6c48bc4..93f6696afdd7 100644 --- a/src/rgw/rgw_sal_dbstore.h +++ b/src/rgw/rgw_sal_dbstore.h @@ -511,6 +511,7 @@ protected: virtual int get_user_by_email(const DoutPrefixProvider *dpp, const std::string& email, optional_yield y, std::unique_ptr* user) override; virtual int get_user_by_swift(const DoutPrefixProvider *dpp, const std::string& user_str, optional_yield y, std::unique_ptr* user) override; virtual std::unique_ptr get_object(const rgw_obj_key& k) override; + virtual std::string get_cluster_id(const DoutPrefixProvider* dpp, optional_yield y); virtual int get_bucket(const DoutPrefixProvider *dpp, User* u, const rgw_bucket& b, std::unique_ptr* bucket, optional_yield y) override; virtual int get_bucket(User* u, const RGWBucketInfo& i, std::unique_ptr* bucket) override; virtual int get_bucket(const DoutPrefixProvider *dpp, User* u, const std::string& tenant, const std::string&name, std::unique_ptr* bucket, optional_yield y) override;