]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
Don't loop forever when reading data from 0 sized segment. 11626/head
authorMarcus Watts <mwatts@redhat.com>
Fri, 14 Oct 2016 01:12:36 +0000 (21:12 -0400)
committerOrit Wasserman <owasserm@redhat.com>
Mon, 24 Oct 2016 17:32:39 +0000 (19:32 +0200)
commit2f9a5beb9a903220b70a780b30564d9741e9f0e5
tree026c66d3c13771c84424950fcd0c0ef23ac4a9c5
parent3ccc17b81d2794406d803ff4210e930a1fa67455
Don't loop forever when reading data from 0 sized segment.

The 0 sized segment can arise depending on how
the client uploads the object in the first place.
The cpu loop then happens during a swift `GET'.

Signed-off-by: Marcus Watts <mwatts@redhat.com>
(cherry picked from commit 46c5f9773246522e66bb2cca49345d0b62a16c42)
src/rgw/rgw_op.cc