]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: the http response code of delete bucket should not be 204-no-content
authorChang Liu <liuchang0812@gmail.com>
Thu, 19 Sep 2019 06:56:02 +0000 (14:56 +0800)
committerChang Liu <channingliu@tencent.com>
Mon, 21 Oct 2019 12:59:06 +0000 (12:59 +0000)
Fixes: https://tracker.ceph.com/issues/41925
Signed-off-by: Chang Liu <liuchang0812@gmail.com>
src/rgw/rgw_rest_s3.cc

index b1c75fe8715c07079fdb175fc83c9cf7234cc8fb..d1028b0291d689e35f6531ade810afd18c5c0d14 100644 (file)
@@ -1662,15 +1662,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)