safe is an alias of completed since
af01db76f63a22178509b402776da54164af1eb0. there is no need to have
two callbacks for tracking the state of an async operation anymore.
in this change, wait_for_safe() and friends are marked "deprecated"
Signed-off-by: Kefu Chai <kchai@redhat.com>
* @param c operation to wait for
* @returns 0
*/
-CEPH_RADOS_API int rados_aio_wait_for_safe(rados_completion_t c);
+CEPH_RADOS_API int rados_aio_wait_for_safe(rados_completion_t c)
+ __attribute__((deprecated));
/**
* Has an asynchronous operation completed?
* @param c operation to wait for
* @returns 0
*/
-CEPH_RADOS_API int rados_aio_wait_for_safe_and_cb(rados_completion_t c);
+CEPH_RADOS_API int rados_aio_wait_for_safe_and_cb(rados_completion_t c)
+ __attribute__((deprecated));
/**
* Has an asynchronous operation and callback completed
struct CEPH_RADOS_API AioCompletion {
AioCompletion(AioCompletionImpl *pc_) : pc(pc_) {}
int set_complete_callback(void *cb_arg, callback_t cb);
- int set_safe_callback(void *cb_arg, callback_t cb);
+ int set_safe_callback(void *cb_arg, callback_t cb)
+ __attribute__ ((deprecated));
int wait_for_complete();
- int wait_for_safe();
+ int wait_for_safe() __attribute__ ((deprecated));
int wait_for_complete_and_cb();
- int wait_for_safe_and_cb();
+ int wait_for_safe_and_cb() __attribute__ ((deprecated));
bool is_complete();
- bool is_safe();
+ bool is_safe() __attribute__ ((deprecated));
bool is_complete_and_cb();
- bool is_safe_and_cb();
+ bool is_safe_and_cb() __attribute__ ((deprecated));
int get_return_value();
int get_version() __attribute__ ((deprecated));
uint64_t get_version64();
MultiAioCompletion(MultiAioCompletionImpl *pc_) : pc(pc_) {}
~MultiAioCompletion();
int set_complete_callback(void *cb_arg, librados::callback_t cb);
- int set_safe_callback(void *cb_arg, librados::callback_t cb);
+ int set_safe_callback(void *cb_arg, librados::callback_t cb) __attribute__ ((deprecated));
void wait_for_complete();
- void wait_for_safe();
+ void wait_for_safe() __attribute__ ((deprecated));
void wait_for_complete_and_cb();
- void wait_for_safe_and_cb();
+ void wait_for_safe_and_cb() __attribute__ ((deprecated));
bool is_complete();
- bool is_safe();
+ bool is_safe() __attribute__ ((deprecated));
bool is_complete_and_cb();
- bool is_safe_and_cb();
+ bool is_safe_and_cb() __attribute__ ((deprecated));
int get_return_value();
void release();
MultiAioCompletionImpl *pc;