]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: drop getting list-type when get_data is false 31742/head
authorJos Collin <jcollin@redhat.com>
Wed, 3 Jul 2019 04:44:21 +0000 (10:14 +0530)
committerNathan Cutler <ncutler@suse.com>
Tue, 19 Nov 2019 16:38:09 +0000 (17:38 +0100)
Signed-off-by: Jos Collin <jcollin@redhat.com>
(cherry picked from commit ae56a918174cc6899bf7384004560ea57036b009)

src/rgw/rgw_rest_s3.cc

index 5cd6f238b11d6ba9d9978fed847fbe8b6fa71d4d..0a28abaeb455606a9df3a4e656ccaa4efa5ffdef 100644 (file)
@@ -3523,11 +3523,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;