e7a346
From 931b40987fa4e2d4f7ddf561fd413663129e9072 Mon Sep 17 00:00:00 2001
e7a346
From: karthik-us <ksubrahm@redhat.com>
e7a346
Date: Mon, 27 Nov 2017 11:54:25 +0530
e7a346
Subject: [PATCH 082/128] cluster/afr: Print heal info summary output in stream
e7a346
 fashion
e7a346
e7a346
Problem:
e7a346
The heal info summary was printing the output at the end after
e7a346
crawling for pending heal entries completes on all the bricks.
e7a346
e7a346
Fix:
e7a346
Printing the output immediately after the crawl on individual brick
e7a346
completes, so that it won't give the impression of CLI being hung.
e7a346
e7a346
Upstream patch: https://review.gluster.org/#/c/18832/
e7a346
e7a346
Change-Id: Ieaf5718736a7ee6837bac02bd30a95836e605dab
e7a346
BUG: 1419438
e7a346
Signed-off-by: karthik-us <ksubrahm@redhat.com>
e7a346
Reviewed-on: https://code.engineering.redhat.com/gerrit/124283
e7a346
Tested-by: RHGS Build Bot <nigelb@redhat.com>
e7a346
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
e7a346
---
e7a346
 heal/src/glfs-heal.c | 1 +
e7a346
 1 file changed, 1 insertion(+)
e7a346
e7a346
diff --git a/heal/src/glfs-heal.c b/heal/src/glfs-heal.c
e7a346
index 27a9624..22c9395 100644
e7a346
--- a/heal/src/glfs-heal.c
e7a346
+++ b/heal/src/glfs-heal.c
e7a346
@@ -422,6 +422,7 @@ glfsh_print_hr_heal_op_summary (int ret, num_entries_t *num_entries)
e7a346
         }
e7a346
 out:
e7a346
         printf ("\n");
e7a346
+        fflush (stdout);
e7a346
         return 0;
e7a346
 }
e7a346
 
e7a346
-- 
e7a346
1.8.3.1
e7a346