]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os, crimson/osd: make xattr retrieval const.
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Mon, 12 Aug 2019 18:28:37 +0000 (20:28 +0200)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Sat, 24 Aug 2019 01:34:00 +0000 (03:34 +0200)
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/crimson/os/cyan_store.cc
src/crimson/os/cyan_store.h
src/crimson/os/futurized_store.h
src/crimson/osd/pg_backend.cc
src/crimson/osd/pg_backend.h

index 6fa66e18f3510fe4cbc8da947f8c746b8c5ccb84..3bd953dc3562b8a359200cef25915aa3d61d8387 100644 (file)
@@ -201,7 +201,7 @@ seastar::future<ceph::bufferlist> CyanStore::read(CollectionRef c,
 
 seastar::future<ceph::bufferptr> CyanStore::get_attr(CollectionRef c,
                                                      const ghobject_t& oid,
-                                                     std::string_view name)
+                                                     std::string_view name) const
 {
   logger().debug("{} {} {}",
                 __func__, c->cid, oid);
index 810e54bf6aad4d2d39f2334224600fa6466ba5db..0ab215fb00f1932f41bb06216b0f7c5e4c67c435 100644 (file)
@@ -51,7 +51,7 @@ public:
                                   uint32_t op_flags = 0) final;
   seastar::future<ceph::bufferptr> get_attr(CollectionRef c,
                                            const ghobject_t& oid,
-                                           std::string_view name) final;
+                                           std::string_view name) const final;
   seastar::future<attrs_t> get_attrs(CollectionRef c,
                                      const ghobject_t& oid) final;
 
index ac8a6fc2d557e37779119fc61c5adb5f3395b870..ebbe53a4ceffec4ee03de8434d45ec936373635f 100644 (file)
@@ -72,7 +72,7 @@ public:
                                   uint32_t op_flags = 0) = 0;
   virtual seastar::future<ceph::bufferptr> get_attr(CollectionRef c,
                                            const ghobject_t& oid,
-                                           std::string_view name) = 0;
+                                           std::string_view name) const = 0;
 
   using attrs_t = std::map<std::string, ceph::bufferptr, std::less<>>;
   virtual seastar::future<attrs_t> get_attrs(CollectionRef c,
index 41e05932d862c581b40356cfe9e583041be0f6af..9fe24d4e63c974f8429530c272cb581be7279e11 100644 (file)
@@ -428,7 +428,7 @@ seastar::future<> PGBackend::setxattr(
 
 seastar::future<> PGBackend::getxattr(
   const ObjectState& os,
-  OSDOp& osd_op)
+  OSDOp& osd_op) const
 {
   std::string name;
   ceph::bufferlist val;
@@ -452,7 +452,7 @@ seastar::future<> PGBackend::getxattr(
 
 seastar::future<ceph::bufferptr> PGBackend::getxattr(
   const hobject_t& soid,
-  std::string_view key)
+  std::string_view key) const
 {
   return store->get_attr(coll, ghobject_t{soid}, key);
 }
index 0c85dfe266e5097b1df5e6fb59561294be68a781..7f3dd4fb3a996505fb81e2b3dba63bae90753ab1 100644 (file)
@@ -78,10 +78,10 @@ public:
     ceph::os::Transaction& trans);
   seastar::future<> getxattr(
     const ObjectState& os,
-    OSDOp& osd_op);
+    OSDOp& osd_op) const;
   seastar::future<ceph::bufferptr> getxattr(
     const hobject_t& soid,
-    std::string_view key);
+    std::string_view key) const;
 
   virtual void got_rep_op_reply(const MOSDRepOpReply&) {}