diff options
author | karthik-us <ksubrahm@redhat.com> | 2017-11-21 19:01:36 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2017-11-22 10:12:28 +0000 |
commit | 77e3bc671aab2fda68ada53f38ec368b20675f59 (patch) | |
tree | 716c817ac4a3d898b5cf14f651e3be1987b19dbe /heal | |
parent | 038d8f994d66eeb79734c03ecd631a12d5433221 (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: 1506104
Signed-off-by: karthik-us <ksubrahm@redhat.com>
Diffstat (limited to 'heal')
-rw-r--r-- | heal/src/glfs-heal.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |