the early return for stat requests in RGWGetObj::execute() can happen
as soon as we've read the head object
Signed-off-by: Casey Bodley <cbodley@redhat.com>
if (op_ret < 0)
goto done_err;
+ /* STAT ops don't need data, and do no i/o */
+ if (get_type() == RGW_OP_STAT_OBJ) {
+ return;
+ }
+
/* start gettorrent */
if (torrent.get_flag())
{
start = ofs;
- /* STAT ops don't need data, and do no i/o */
- if (get_type() == RGW_OP_STAT_OBJ) {
- return;
- }
-
if (!get_data || ofs > end) {
send_response_data(bl, 0, 0);
return;