From c61d12e729ffc2a402d8f4ab7d98c3f17b15f9a7 Mon Sep 17 00:00:00 2001 From: Jiaying Ren Date: Wed, 21 Jun 2017 16:30:16 +0800 Subject: [PATCH] rgw: update rgw_rados.h function doc + update system_obj_get_attr func comment + drop deprecated func comment for get_obj + update func comment for pool_iterate_begin Signed-off-by: Jiaying Ren --- src/rgw/rgw_rados.cc | 27 ++------------------------- src/rgw/rgw_rados.h | 8 ++++---- 2 files changed, 6 insertions(+), 29 deletions(-) diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 88b2710c6efa..d21e0a5631b7 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -9299,9 +9299,8 @@ int RGWRados::Object::Stat::finish() } /** - * Get the attributes for an object. - * bucket: name of the bucket holding the object. - * obj: name of the object + * Get an attribute for a system object. + * obj: the object to get attr * name: name of the attr to retrieve * dest: bufferlist to store the result in * Returns: 0 on success, -ERR# otherwise. @@ -9641,28 +9640,6 @@ int RGWRados::set_attrs(void *ctx, const RGWBucketInfo& bucket_info, rgw_obj& ob return 0; } -/** - * Get data about an object out of RADOS and into memory. - * bucket: name of the bucket the object is in. - * obj: name/key of the object to read - * data: if get_data==true, this pointer will be set - * to an address containing the object's data/value - * attrs: if non-NULL, the pointed-to map will contain - * all the attrs of the object when this function returns - * mod_ptr: if non-NULL, compares the object's mtime to *mod_ptr, - * and if mtime is smaller it fails. - * unmod_ptr: if non-NULL, compares the object's mtime to *unmod_ptr, - * and if mtime is >= it fails. - * if_match/nomatch: if non-NULL, compares the object's etag attr - * to the string and, if it doesn't/does match, fails out. - * get_data: if true, the object's data/value will be read out, otherwise not - * err: Many errors will result in this structure being filled - * with extra informatin on the error. - * Returns: -ERR# on failure, otherwise - * (if get_data==true) length of read data, - * (if get_data==false) length of the object - */ -// P3 XXX get_data is not seen used anywhere. int RGWRados::Object::Read::prepare() { RGWRados *store = source->get_store(); diff --git a/src/rgw/rgw_rados.h b/src/rgw/rgw_rados.h index 4e81cbe4fcf3..73fb4682e0d5 100644 --- a/src/rgw/rgw_rados.h +++ b/src/rgw/rgw_rados.h @@ -3202,9 +3202,8 @@ public: int delete_obj_index(const rgw_obj& obj); /** - * Get the attributes for an object. - * bucket: name of the bucket holding the object. - * obj: name of the object + * Get an attribute for a system object. + * obj: the object to get attr * name: name of the attr to retrieve * dest: bufferlist to store the result in * Returns: 0 on success, -ERR# otherwise. @@ -3627,11 +3626,12 @@ public: /** * Init pool iteration - * bucket: pool name in a bucket object + * pool: pool to use for the ctx initialization * ctx: context object to use for the iteration * Returns: 0 on success, -ERR# otherwise. */ int pool_iterate_begin(const rgw_pool& pool, RGWPoolIterCtx& ctx); + /** * Iterate over pool return object names, use optional filter * ctx: iteration context, initialized with pool_iterate_begin() -- 2.47.3