flushed the formatter after closing the primary section in MDLOG, BILOG and GETSHARDINFO :: list()

Signed-off-by: Babu Shanmugam <anbu@enovance.com>
This commit is contained in:
Babu Shanmugam 2013-05-30 10:28:23 +05:30
parent 64d1178fa9
commit d20e30a744
2 changed files with 4 additions and 1 deletions

View 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() {

View 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