From 77e3bc671aab2fda68ada53f38ec368b20675f59 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: 1506104 Signed-off-by: karthik-us --- heal/src/glfs-heal.c | 1 + 1 file changed, 1 insertion(+) (limited to 'heal/src') diff --git a/heal/src/glfs-heal.c b/heal/src/glfs-heal.c index a5a623fcdd9..277ac9bb52d 100644 --- a/heal/src/glfs-heal.c +++ b/heal/src/glfs-heal.c @@ -465,6 +465,7 @@ glfsh_print_hr_heal_op_summary (int ret, num_entries_t *num_entries) } out: printf ("\n"); + fflush (stdout); return 0; } -- cgit