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