From a4b28946bffec840b29e5c320ecdbe0fb37bb799 Mon Sep 17 00:00:00 2001 From: Matt Benjamin Date: Thu, 16 Sep 2021 11:11:16 -0400 Subject: [PATCH] rgw:sal: implement (placeholder) get_cluster_fsid in DBStore Signed-off-by: Matt Benjamin --- src/rgw/rgw_sal_dbstore.cc | 5 +++++ src/rgw/rgw_sal_dbstore.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/rgw/rgw_sal_dbstore.cc b/src/rgw/rgw_sal_dbstore.cc index 92f85b641e0..b3532a59b90 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 8007b6c48bc..93f6696afdd 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; -- 2.39.5