From 4bd2bd6bb89b70167de2f142008540238f682f6d Mon Sep 17 00:00:00 2001 From: Jianpeng Ma Date: Tue, 24 Mar 2015 19:04:35 +0800 Subject: [PATCH] librados: remove the unused flags. Signed-off-by: Jianpeng Ma --- src/include/rados/librados.h | 26 ++++---------------------- 1 file changed, 4 insertions(+), 22 deletions(-) diff --git a/src/include/rados/librados.h b/src/include/rados/librados.h index 877368f39b61b..50b1d0d8ce35c 100644 --- a/src/include/rados/librados.h +++ b/src/include/rados/librados.h @@ -105,24 +105,6 @@ enum { }; /** @} */ -/** - * @defgroup librados_h_operation_flags Operation Flags - * Flags for rados_read_op_opeprate(), rados_write_op_operate(), - * rados_aio_read_op_operate(), and rados_aio_write_op_operate(). - * See librados.hpp for details. - * @{ - */ -enum { - LIBRADOS_OPERATION_NOFLAG = 0, - LIBRADOS_OPERATION_BALANCE_READS = 1, - LIBRADOS_OPERATION_LOCALIZE_READS = 2, - LIBRADOS_OPERATION_ORDER_READS_WRITES = 4, - LIBRADOS_OPERATION_IGNORE_CACHE = 8, - LIBRADOS_OPERATION_SKIPRWLOCKS = 16, - LIBRADOS_OPERATION_IGNORE_OVERLAY = 32, -}; -/** @} */ - /* * snap id contants */ @@ -2408,7 +2390,7 @@ CEPH_RADOS_API void rados_write_op_set_alloc_hint(rados_write_op_t write_op, * @param io the ioctx that the object is in * @param oid the object id * @param mtime the time to set the mtime to, NULL for the current time - * @param flags flags to apply to the entire operation (LIBRADOS_OPERATION_*) + * @param flags flags to apply to the entire operation (OPERATION_*) */ CEPH_RADOS_API int rados_write_op_operate(rados_write_op_t write_op, rados_ioctx_t io, @@ -2422,7 +2404,7 @@ CEPH_RADOS_API int rados_write_op_operate(rados_write_op_t write_op, * @param completion what to do when operation has been attempted * @param oid the object id * @param mtime the time to set the mtime to, NULL for the current time - * @param flags flags to apply to the entire operation (LIBRADOS_OPERATION_*) + * @param flags flags to apply to the entire operation (OPERATION_*) */ CEPH_RADOS_API int rados_aio_write_op_operate(rados_write_op_t write_op, rados_ioctx_t io, @@ -2669,7 +2651,7 @@ CEPH_RADOS_API void rados_read_op_omap_get_vals_by_keys(rados_read_op_t read_op, * @param read_op operation to perform * @param io the ioctx that the object is in * @param oid the object id - * @param flags flags to apply to the entire operation (LIBRADOS_OPERATION_*) + * @param flags flags to apply to the entire operation (OPERATION_*) */ CEPH_RADOS_API int rados_read_op_operate(rados_read_op_t read_op, rados_ioctx_t io, @@ -2682,7 +2664,7 @@ CEPH_RADOS_API int rados_read_op_operate(rados_read_op_t read_op, * @param io the ioctx that the object is in * @param completion what to do when operation has been attempted * @param oid the object id - * @param flags flags to apply to the entire operation (LIBRADOS_OPERATION_*) + * @param flags flags to apply to the entire operation (OPERATION_*) */ CEPH_RADOS_API int rados_aio_read_op_operate(rados_read_op_t read_op, rados_ioctx_t io, -- 2.39.5