]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: the http response code of delete bucket should not be 204-no-content 32833/head
authorChang Liu <liuchang0812@gmail.com>
Thu, 19 Sep 2019 06:56:02 +0000 (14:56 +0800)
committerNathan Cutler <ncutler@suse.com>
Fri, 24 Jan 2020 16:00:30 +0000 (17:00 +0100)
Fixes: https://tracker.ceph.com/issues/41925
Signed-off-by: Chang Liu <liuchang0812@gmail.com>
(cherry picked from commit 710d8d31d27af05de1f17f7a44f9f0b5862b00a2)

src/rgw/rgw_rest_s3.cc

index 4c2d9167efb24542c0d3a619005c211d113b8e63..32d53cc7f8d0391b05d1b3a9b0d0fe6a68e42864 100644 (file)
@@ -1566,15 +1566,6 @@ void RGWDeleteBucket_ObjStore_S3::send_response()
   set_req_state_err(s, r);
   dump_errno(s);
   end_header(s, this);
-
-  if (s->system_request) {
-    JSONFormatter f; /* use json formatter for system requests output */
-
-    f.open_object_section("info");
-    encode_json("object_ver", objv_tracker.read_version, &f);
-    f.close_section();
-    rgw_flush_formatter_and_reset(s, &f);
-  }
 }
 
 static inline void map_qs_metadata(struct req_state* s)