]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
fix infinite loop in rest api for log list
authorXie Rui <jerry.xr86@gmail.com>
Thu, 22 Jun 2017 09:12:30 +0000 (17:12 +0800)
committerCasey Bodley <cbodley@redhat.com>
Wed, 28 Jun 2017 14:18:42 +0000 (10:18 -0400)
commit9fbc5378d2737d38e2ac915f20b44d308e18bc68
tree95ef259edfb6da578e05cdeb99f361201254ea80
parent40f023c2bc7cf05cce97e4773e456c906f2d552c
fix infinite loop in rest api for log list

as max_entries_str is empty, it will be infinite loop when log is more than MAX_ENTRIES(1000) from marker.
and max_entries maybe overflow if use it to count the left entries.

Fixes: http://tracker.ceph.com/issues/20386
Signed-off-by: xierui <jerry.xr86@gmail.com>
src/rgw/rgw_metadata.cc
src/rgw/rgw_rest_log.cc