]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cls/rgw: make usage_iterate_range()'s "truncated" parameter trustworthy
authorGreg Farnum <gfarnum@redhat.com>
Tue, 6 Mar 2018 00:40:41 +0000 (16:40 -0800)
committerAbhishek Lekshmanan <abhishek@suse.com>
Thu, 12 Apr 2018 17:27:35 +0000 (19:27 +0200)
commit880027bf0812329bcb84ce0cb6720581e585d9e1
tree61417aa5908224f6dca30b2ccd4c3aae276f7670
parent207f12bb744baf6b6c1631ccb132b7143a37e19d
cls/rgw: make usage_iterate_range()'s "truncated" parameter trustworthy

Set it to false whenever we identify that we've reached the end of our
range, even if the underlying OSD op says it could have given us more
results. Then rely on that instead of weird iter-based logic to tell
our client that it doesn't need to do more work.

Fixes: https://tracker.ceph.com/issues/22963
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit 7ea8ca81f7c5ec9d3a6fc627be4f024a17397497)
src/cls/rgw/cls_rgw.cc