]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: rest handlers for mdlog and datalog list dont loop 15983/head
authorCasey Bodley <cbodley@redhat.com>
Wed, 28 Jun 2017 17:32:35 +0000 (13:32 -0400)
committerCasey Bodley <cbodley@redhat.com>
Wed, 28 Jun 2017 18:36:12 +0000 (14:36 -0400)
commitd75e6b967d2ddf84d6e82c78a53061578129294a
tree40cd7c0ea8b08f680bab78657956f268f2dcf0fd
parentdd2893ba05c1095405b3a5edc16b3b1c7916cd7d
rgw: rest handlers for mdlog and datalog list dont loop

the do-while loops are unnecessary, because cls_log_list() will already
give us the requested number of entries, unless truncated. and these
rest operations return the truncated flag and last_marker, which the
client side is already using to run the same loop

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_rest_log.cc