]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: stat requests skip compression, manifest handling, etc 14109/head
authorCasey Bodley <cbodley@redhat.com>
Thu, 23 Mar 2017 16:26:59 +0000 (12:26 -0400)
committerCasey Bodley <cbodley@redhat.com>
Thu, 23 Mar 2017 16:27:07 +0000 (12:27 -0400)
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>
src/rgw/rgw_op.cc

index 468d4f85ad88f4e5732ef1d47396e068269dca95..ceeaf39a2a6bf2b4f8f3075c9f5d74939bee9866 100644 (file)
@@ -1396,6 +1396,11 @@ void RGWGetObj::execute()
   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())
   {
@@ -1472,11 +1477,6 @@ void RGWGetObj::execute()
 
   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;