]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: drop getting list-type when get_data is false 28809/head
authorJos Collin <jcollin@redhat.com>
Wed, 3 Jul 2019 04:44:21 +0000 (10:14 +0530)
committerJos Collin <jcollin@redhat.com>
Fri, 12 Jul 2019 10:23:34 +0000 (15:53 +0530)
Signed-off-by: Jos Collin <jcollin@redhat.com>
src/rgw/rgw_rest_s3.cc

index ec2afd5b939d7c8cd8b5831192fc4de183bdfd87..c12aed9149bb67ae6e0f0ec5b1da64524270d385 100644 (file)
@@ -3574,11 +3574,9 @@ RGWOp *RGWHandler_REST_Service_S3::op_post()
 RGWOp *RGWHandler_REST_Bucket_S3::get_obj_op(bool get_data)
 {
   // Non-website mode
-  int list_type = 1;
-  s->info.args.get_int("list-type", &list_type, 1);
-
-   // Non-website mode    // Non-website mode
   if (get_data) {   
+    int list_type = 1;
+    s->info.args.get_int("list-type", &list_type, 1);
     switch (list_type) {
       case 1:
         return new RGWListBucket_ObjStore_S3;