From 080fae6e92cb8c409da0b1353629e1d47239f807 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 30 Oct 2014 09:51:04 -0700 Subject: [PATCH] librados: mark category args and ops as unused Signed-off-by: Sage Weil --- src/include/rados/librados.h | 1 + src/include/rados/librados.hpp | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/include/rados/librados.h b/src/include/rados/librados.h index 79afe5521a1..60faa94986a 100644 --- a/src/include/rados/librados.h +++ b/src/include/rados/librados.h @@ -1993,6 +1993,7 @@ void rados_write_op_rmxattr(rados_write_op_t write_op, const char *name); * @param exclusive set to either LIBRADOS_CREATE_EXCLUSIVE or LIBRADOS_CREATE_IDEMPOTENT * will error if the object already exists. + * @param category category string (DEPRECATED, HAS NO EFFECT) */ void rados_write_op_create(rados_write_op_t write_op, int exclusive, diff --git a/src/include/rados/librados.hpp b/src/include/rados/librados.hpp index cabe63f97b5..b97bf80ac9f 100644 --- a/src/include/rados/librados.hpp +++ b/src/include/rados/librados.hpp @@ -308,7 +308,9 @@ namespace librados } void create(bool exclusive); - void create(bool exclusive, const std::string& category); + void create(bool exclusive, + const std::string& category); ///< NOTE: category is unused + void write(uint64_t off, const bufferlist& bl); void write_full(const bufferlist& bl); void append(const bufferlist& bl); @@ -584,7 +586,8 @@ namespace librados // create an object int create(const std::string& oid, bool exclusive); - int create(const std::string& oid, bool exclusive, const std::string& category); + int create(const std::string& oid, bool exclusive, + const std::string& category); ///< category is unused /** * write bytes to an object at a specified offset @@ -989,6 +992,7 @@ namespace librados int pool_list(std::list& v); int get_pool_stats(std::list& v, std::map& stats); + /// deprecated; categories no longer supported int get_pool_stats(std::list& v, std::string& category, std::map& stats); -- 2.47.3