]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
flushed the formatter after closing the primary section in MDLOG, BILOG and GETSHARDI...
authorBabu Shanmugam <anbu@enovance.com>
Thu, 30 May 2013 04:58:23 +0000 (10:28 +0530)
committerBabu Shanmugam <anbu@enovance.com>
Thu, 30 May 2013 04:58:23 +0000 (10:28 +0530)
Signed-off-by: Babu Shanmugam <anbu@enovance.com>
src/rgw/rgw_rest_log.cc
src/test/test_rgw_admin_log.cc

index f5ffce19f3794dadc39e7ce99e020ba5d1e87787..97af495e652f922036abc8233c273cd5eb389cde 100644 (file)
@@ -88,6 +88,7 @@ void RGWOp_MDLog_List::send_response() {
     flusher.flush();
   }
   s->formatter->close_section();
+  flusher.flush();
 }
 
 void RGWOp_MDLog_GetShardsInfo::execute() {
@@ -103,6 +104,7 @@ void RGWOp_MDLog_GetShardsInfo::send_response() {
   s->formatter->open_object_section("num_objects");
   s->formatter->dump_unsigned("num_objects", num_objects);
   s->formatter->close_section();
+  flusher.flush();
 }
 
 void RGWOp_MDLog_Delete::execute() {
@@ -278,6 +280,7 @@ void RGWOp_BILog_List::send_response(list<rgw_bi_log_entry>& entries, string& ma
 
 void RGWOp_BILog_List::send_response_end() {
   s->formatter->close_section();
+  flusher.flush();
 }
       
 void RGWOp_BILog_Delete::execute() {
index a2a3c2ad56b67a56264b93bdf49c34edfa7f3620..d3d312b7c5f03e0871b2e3b9f999bcf26e256d89 100644 (file)
@@ -54,7 +54,7 @@ using namespace std;
 #define HTTP_RESPONSE_STR "RespCode"
 #define CEPH_CRYPTO_HMACSHA1_DIGESTSIZE 20
 #define RGW_ADMIN_RESP_PATH "/tmp/.test_rgw_admin_resp"
-#define TEST_BUCKET_NAME "test_bucket1"
+#define TEST_BUCKET_NAME "test_bucket"
 #define TEST_BUCKET_OBJECT "test_object"
 #define TEST_BUCKET_OBJECT_1 "test_object1"
 #define TEST_BUCKET_OBJECT_SIZE 1024