From: Sage Weil Date: Mon, 20 Feb 2017 16:58:28 +0000 (-0500) Subject: os/ObjectStore: make setattrs take const attrset X-Git-Tag: v12.0.1~279^2~20 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b01dbd3cb19af37f42849528fb550915cb32ffdb;p=ceph.git os/ObjectStore: make setattrs take const attrset Signed-off-by: Sage Weil --- diff --git a/src/os/ObjectStore.h b/src/os/ObjectStore.h index 36c0d9a31fb..7f4a00733e3 100644 --- a/src/os/ObjectStore.h +++ b/src/os/ObjectStore.h @@ -1114,7 +1114,7 @@ public: data.ops++; } /// Set multiple xattrs of an object - void setattrs(const coll_t& cid, const ghobject_t& oid, map& attrset) { + void setattrs(const coll_t& cid, const ghobject_t& oid, const map& 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& attrset) { + void setattrs(const coll_t& cid, const ghobject_t& oid, const map& attrset) { Op* _op = _get_next_op(); _op->op = OP_SETATTRS; _op->cid = _get_coll_id(cid);