]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ObjectStore: add bufferlist/string getattr
authorSamuel Just <sam.just@inktank.com>
Sat, 15 Feb 2014 00:13:01 +0000 (16:13 -0800)
committerSamuel Just <sam.just@inktank.com>
Tue, 18 Feb 2014 04:12:16 +0000 (20:12 -0800)
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/os/ObjectStore.h

index f9c937b0745539319920360cc99abe9a9344eafa..1b75ecb265012c986a35cc3f18a509763bfb2d7e 100644 (file)
@@ -946,6 +946,14 @@ public:
       value.push_back(bp);
     return r;
   }
+  int getattr(
+    coll_t cid, const ghobject_t& oid,
+    const string name, bufferlist& value) {
+    bufferptr bp;
+    int r = getattr(cid, oid, name.c_str(), bp);
+    value.push_back(bp);
+    return r;
+  }
   virtual int getattrs(coll_t cid, const ghobject_t& oid, map<string,bufferptr>& aset, bool user_only = false) = 0;
   int getattrs(coll_t cid, const ghobject_t& oid, map<string,bufferlist>& aset, bool user_only = false) {
     map<string,bufferptr> bmap;