summaryrefslogtreecommitdiff
path: root/src/os/ObjectStore.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/ObjectStore.h')
-rw-r--r--src/os/ObjectStore.h15
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);