]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/ObjectStore: make setattrs take const attrset
authorSage Weil <sage@redhat.com>
Mon, 20 Feb 2017 16:58:28 +0000 (11:58 -0500)
committerSage Weil <sage@redhat.com>
Mon, 20 Feb 2017 19:13:04 +0000 (14:13 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/ObjectStore.h

index 36c0d9a31fb475f94ffeb4b351fd922dbc3e4b97..7f4a00733e307db110baf12eb2b25e86c314d9a1 100644 (file)
@@ -1114,7 +1114,7 @@ public:
       data.ops++;
     }
     /// Set multiple xattrs of an object
-    void setattrs(const coll_t& cid, const ghobject_t& oid, map<string,bufferptr>& attrset) {
+    void setattrs(const coll_t& cid, const ghobject_t& oid, const map<string,bufferptr>& attrset) {
       Op* _op = _get_next_op();
       _op->op = OP_SETATTRS;
       _op->cid = _get_coll_id(cid);
@@ -1123,7 +1123,7 @@ public:
       data.ops++;
     }
     /// Set multiple xattrs of an object
-    void setattrs(const coll_t& cid, const ghobject_t& oid, map<string,bufferlist>& attrset) {
+    void setattrs(const coll_t& cid, const ghobject_t& oid, const map<string,bufferlist>& attrset) {
       Op* _op = _get_next_op();
       _op->op = OP_SETATTRS;
       _op->cid = _get_coll_id(cid);