]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cls/rgw: make usage_iterate_range()'s "truncated" parameter trustworthy 20730/head
authorGreg Farnum <gfarnum@redhat.com>
Tue, 6 Mar 2018 00:40:41 +0000 (16:40 -0800)
committerGreg Farnum <gfarnum@redhat.com>
Tue, 6 Mar 2018 18:33:38 +0000 (10:33 -0800)
commit7ea8ca81f7c5ec9d3a6fc627be4f024a17397497
treea55fc7452539d1a641206d8b7c5fc38706804558
parent86d7f3f72c2862ad63e5d9292d3c5d6d9444144e
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>
src/cls/rgw/cls_rgw.cc