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