]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix 'gc list --include-all' command infinite loop the first 1000 items 16139/head
authorlu.shasha <lu.shasha@eisoo.com>
Thu, 5 Jan 2017 03:50:42 +0000 (11:50 +0800)
committerNathan Cutler <ncutler@suse.com>
Wed, 5 Jul 2017 21:33:01 +0000 (23:33 +0200)
commit91569f63852f12d958175bf970967fa9d25b2cfc
tree194d171b1d9f4f6f27e0ecf5ab170309761b43e9
parente12eae92b04d30d322740a6c7a33d86e448bf9c5
rgw: fix 'gc list --include-all' command infinite loop the first 1000 items

When the items to gc over 1000, 'gc list --include-all' command will infinite loop the first 1000 items.
Add next_marker to move to the next 1000 items.

Fixes: http://tracker.ceph.com/issues/19978
Signed-off-by: fang yuxiang <fang.yuxiang@eisoo.com>
Signed-off-by: Shasha Lu <lu.shasha@eisoo.com>
(cherry picked from commit fc29f52ebca63104a05515484088ff136dfb0b15)
src/cls/rgw/cls_rgw.cc
src/cls/rgw/cls_rgw_client.cc
src/cls/rgw/cls_rgw_client.h
src/cls/rgw/cls_rgw_ops.cc
src/cls/rgw/cls_rgw_ops.h
src/rgw/rgw_gc.cc
src/test/cls_rgw/test_cls_rgw.cc