]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw:sal: implement (placeholder) get_cluster_fsid in DBStore
authorMatt Benjamin <mbenjamin@redhat.com>
Thu, 16 Sep 2021 15:11:16 +0000 (11:11 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Thu, 9 Dec 2021 15:47:56 +0000 (10:47 -0500)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_sal_dbstore.cc
src/rgw/rgw_sal_dbstore.h

index 92f85b641e093f80a0897395a5cbf392bb54919f..b3532a59b909613d5c8860c19862427b721e6780 100644 (file)
@@ -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<Object> DBStore::get_object(const rgw_obj_key& k)
   {
     return std::make_unique<DBObject>(this, k);
index 8007b6c48bc40e8badcbc086ee76d848ace10a02..93f6696afdd765f3bbbfe39085e89563b9e7c9ee 100644 (file)
@@ -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>* user) override;
       virtual int get_user_by_swift(const DoutPrefixProvider *dpp, const std::string& user_str, optional_yield y, std::unique_ptr<User>* user) override;
       virtual std::unique_ptr<Object> 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>* bucket, optional_yield y) override;
       virtual int get_bucket(User* u, const RGWBucketInfo& i, std::unique_ptr<Bucket>* bucket) override;
       virtual int get_bucket(const DoutPrefixProvider *dpp, User* u, const std::string& tenant, const std::string&name, std::unique_ptr<Bucket>* bucket, optional_yield y) override;