diff options
author | Sage Weil <sage@inktank.com> | 2013-08-20 22:23:54 -0700 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-08-30 16:54:15 -0700 |
commit | 6473060e693731408b4ed8e0e7f1f15e99cb0dea (patch) | |
tree | b5ab3a6f6f659ed2a0ae12a55f3fb1e421db0e07 | |
parent | 8a65ae8e1780a76248b6bc2b9036121275d8fa42 (diff) | |
download | ceph-6473060e693731408b4ed8e0e7f1f15e99cb0dea.tar.gz |
os/ObjectStore: add bufferlist variant of setattrs
And hopefully we can kill the bufferptr ones someday!
Signed-off-by: Sage Weil <sage@inktank.com>
-rw-r--r-- | src/os/ObjectStore.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/os/ObjectStore.h b/src/os/ObjectStore.h index eb5b40c5a69..655afee004f 100644 --- a/src/os/ObjectStore.h +++ b/src/os/ObjectStore.h @@ -475,6 +475,14 @@ public: ::encode(attrset, tbl); ops++; } + void setattrs(coll_t cid, const hobject_t& oid, map<string,bufferlist>& attrset) { + __u32 op = OP_SETATTRS; + ::encode(op, tbl); + ::encode(cid, tbl); + ::encode(oid, tbl); + ::encode(attrset, tbl); + ops++; + } void rmattr(coll_t cid, const hobject_t& oid, const char *name) { string n(name); rmattr(cid, oid, n); @@ -578,6 +586,13 @@ public: ::encode(aset, tbl); ops++; } + void collection_setattrs(coll_t cid, map<string,bufferlist>& aset) { + __u32 op = OP_COLL_SETATTRS; + ::encode(op, tbl); + ::encode(cid, tbl); + ::encode(aset, tbl); + ops++; + } void collection_rename(coll_t cid, coll_t ncid) { __u32 op = OP_COLL_RENAME; ::encode(op, tbl); |