]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/os: port get_max_attr_name_length() from MemStore.
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Mon, 5 Aug 2019 06:47:08 +0000 (08:47 +0200)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Sat, 24 Aug 2019 01:33:58 +0000 (03:33 +0200)
This method is an enabler for CEPH_OSD_OP_SETXATTR.

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

index 796f23544fda654ae7ce26bd8f2c7f9f44006528..922092711240dbb8ea43d48ed1c5d2e0aaae3e4e 100644 (file)
@@ -631,4 +631,10 @@ uuid_d CyanStore::get_fsid() const
 {
   return osd_fsid;
 }
+
+unsigned CyanStore::get_max_attr_name_length() const
+{
+  // arbitrary limitation exactly like in the case of MemStore.
+  return 256;
+}
 }
index 8eacaa29b8d8e2d4ecebac133f76799875e08674..c1a13ca7cd69743bc64477764ed8305f32008ea5 100644 (file)
@@ -84,6 +84,7 @@ public:
                  const std::string& value) final;
   int read_meta(const std::string& key, std::string* value) final;
   uuid_d get_fsid() const final;
+  unsigned get_max_attr_name_length() const final;
 
 private:
   int _remove(const coll_t& cid, const ghobject_t& oid);
index 81f584cf4e0e3d381152b3f2b70813de20cfdc5b..5287dc4da2d8aac10c89e5ecb96437b0e0e06559 100644 (file)
@@ -105,6 +105,7 @@ public:
                  const std::string& value) = 0;
   virtual int read_meta(const std::string& key, std::string* value) = 0;
   virtual uuid_d get_fsid() const  = 0;
+  virtual unsigned get_max_attr_name_length() const = 0;
 };
 
 }