summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkarthik-us <ksubrahm@redhat.com>2017-11-21 19:01:36 +0530
committerShyamsundar Ranganathan <srangana@redhat.com>2017-11-27 18:13:09 +0000
commitae88dc134a89fa4af4ff2356abbf32f6f220dd53 (patch)
treef91dad010f7f52f705952630be585dcd3c7ce8b1
parent2960af47b8db3415fdf40cc50f175fd8d8098578 (diff)
cluster/afr: Print heal info summary output in stream fashion
Problem: The heal info summary was printing the output at the end after crawling for pending heal entries completes on all the bricks. Fix: Printing the output immediately after the crawl on individual brick completes, so that it won't give the impression of CLI being hung. Change-Id: Ieaf5718736a7ee6837bac02bd30a95836e605dab BUG: 1514419 Signed-off-by: karthik-us <ksubrahm@redhat.com> (cherry picked from commit 77e3bc671aab2fda68ada53f38ec368b20675f59)
-rw-r--r--heal/src/glfs-heal.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/heal/src/glfs-heal.c b/heal/src/glfs-heal.c
index 13f888f8b2c..d8735504f63 100644
--- a/heal/src/glfs-heal.c
+++ b/heal/src/glfs-heal.c
@@ -425,6 +425,7 @@ glfsh_print_hr_heal_op_summary (int ret, num_entries_t *num_entries)
}
out:
printf ("\n");
+ fflush (stdout);
return 0;
}