From: Sage Weil Date: Fri, 11 Mar 2016 18:33:21 +0000 (-0500) Subject: os/ObjectStore: drop collection attr deprecated warnings X-Git-Tag: v10.1.0~98^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d963eb72ec2b7c695102aba9584e95001146cf9f;p=ceph.git os/ObjectStore: drop collection attr deprecated warnings Can't silent these and we have no users left. They'll be removed soon, but I'm tired of sifting through all the warnings. Signed-off-by: Sage Weil --- diff --git a/src/os/ObjectStore.h b/src/os/ObjectStore.h index 340bea3cb7f4..fba6b76fcf18 100644 --- a/src/os/ObjectStore.h +++ b/src/os/ObjectStore.h @@ -1467,8 +1467,8 @@ public: // backends need not implement these at all. /// Set an xattr on a collection - void collection_setattr(const coll_t& cid, const string& name, bufferlist& val) - __attribute__ ((deprecated)) { + void collection_setattr(const coll_t& cid, const string& name, + bufferlist& val) { if (use_tbl) { __u32 op = OP_COLL_SETATTR; ::encode(op, tbl); @@ -1486,8 +1486,7 @@ public: } /// Remove an xattr from a collection - void collection_rmattr(const coll_t& cid, const string& name) - __attribute__ ((deprecated)) { + void collection_rmattr(const coll_t& cid, const string& name) { if (use_tbl) { __u32 op = OP_COLL_RMATTR; ::encode(op, tbl); @@ -1502,8 +1501,7 @@ public: data.ops++; } /// Set multiple xattrs on a collection - void collection_setattrs(const coll_t& cid, map& aset) - __attribute__ ((deprecated)) { + void collection_setattrs(const coll_t& cid, map& aset) { if (use_tbl) { __u32 op = OP_COLL_SETATTRS; ::encode(op, tbl); @@ -1518,8 +1516,7 @@ public: data.ops++; } /// Set multiple xattrs on a collection - void collection_setattrs(const coll_t& cid, map& aset) - __attribute__ ((deprecated)) { + void collection_setattrs(const coll_t& cid, map& aset) { if (use_tbl) { __u32 op = OP_COLL_SETATTRS; ::encode(op, tbl); @@ -2208,8 +2205,7 @@ public: * @returns 0 on success, negative error code on failure */ virtual int collection_getattr(const coll_t& cid, const char *name, - void *value, size_t size) - __attribute__ ((deprecated)) { + void *value, size_t size) { return -EOPNOTSUPP; } @@ -2221,8 +2217,8 @@ public: * @param bl buffer to receive value * @returns 0 on success, negative error code on failure */ - virtual int collection_getattr(const coll_t& cid, const char *name, bufferlist& bl) - __attribute__ ((deprecated)) { + virtual int collection_getattr(const coll_t& cid, const char *name, + bufferlist& bl) { return -EOPNOTSUPP; } @@ -2233,8 +2229,8 @@ public: * @param aset map of keys and buffers that contain the values * @returns 0 on success, negative error code on failure */ - virtual int collection_getattrs(const coll_t& cid, map &aset) - __attribute__ ((deprecated)) { + virtual int collection_getattrs(const coll_t& cid, + map &aset) { return -EOPNOTSUPP; }