From 6d5a7a29b84f4c01e2870ccc4b487c48139dbf3a Mon Sep 17 00:00:00 2001 From: Yan Jun Date: Sat, 18 Jun 2016 15:39:41 +0800 Subject: [PATCH] rgw: add comments for "is_truncated" Signed-off-by: Yan Jun --- src/rgw/rgw_rados.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 5d46bf10cce..44aa3afcb7a 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -4772,8 +4772,9 @@ int rgw_policy_from_attrset(CephContext *cct, map& attrset, /** * get listing of the objects in a bucket. - * bucket: bucket to list contents of + * * max: maximum number of results to return + * bucket: bucket to list contents of * prefix: only return results that match this prefix * delim: do not include results that match this string. * Any skipped results will have the matching portion of their name @@ -4781,8 +4782,8 @@ int rgw_policy_from_attrset(CephContext *cct, map& attrset, * marker: if filled in, begin the listing with this object. * end_marker: if filled in, end the listing with this object. * result: the objects are put in here. - * common_prefixes: if delim is filled in, any matching prefixes are placed - * here. + * common_prefixes: if delim is filled in, any matching prefixes are placed here. + * is_truncated: if number of objects in the bucket is bigger than max, then truncated. */ int RGWRados::Bucket::List::list_objects(int max, vector *result, map *common_prefixes, -- 2.39.5