From ae88dc134a89fa4af4ff2356abbf32f6f220dd53 Mon Sep 17 00:00:00 2001 From: karthik-us Date: Tue, 21 Nov 2017 19:01:36 +0530 Subject: 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 (cherry picked from commit 77e3bc671aab2fda68ada53f38ec368b20675f59) --- heal/src/glfs-heal.c | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit