cf62f1947f
Resolves: bz#1264911 bz#1277924 bz#1286820 bz#1360331 bz#1401969 Resolves: bz#1410719 bz#1419438 bz#1426042 bz#1444820 bz#1459101 Resolves: bz#1464150 bz#1464350 bz#1466122 bz#1466129 bz#1467903 Resolves: bz#1468972 bz#1476876 bz#1484446 bz#1492591 bz#1498391 Resolves: bz#1498730 bz#1499865 bz#1500704 bz#1501345 bz#1505570 Resolves: bz#1507361 bz#1507394 bz#1509102 bz#1509191 bz#1509810 Resolves: bz#1509833 bz#1511766 bz#1512470 bz#1512496 bz#1512963 Resolves: bz#1515051 bz#1519076 bz#1519740 bz#1534253 bz#1534530 Signed-off-by: Milind Changire <mchangir@redhat.com>
56 lines
1.6 KiB
Diff
56 lines
1.6 KiB
Diff
From 9c31bcd6c4234b6a9e4e04410caf98d2cd3d4946 Mon Sep 17 00:00:00 2001
|
|
From: karthik-us <ksubrahm@redhat.com>
|
|
Date: Fri, 17 Nov 2017 18:23:23 +0530
|
|
Subject: [PATCH 083/128] cluster/afr: Print heal info split-brain output in
|
|
stream fashion
|
|
|
|
Problem:
|
|
When we trigger the heal info split-brain command the o/p is not
|
|
streamed as it is received, but dumped at the end for all the bricks
|
|
together. This gives a perception that the command is hung.
|
|
|
|
Fix:
|
|
When we get a split brain entry while crawling throught the pending
|
|
heal entries, flush that immediately so that it prints the output
|
|
in a stream fashion and doesn't look like the cli is hung.
|
|
|
|
Upstream patch: https://review.gluster.org/#/c/18570/
|
|
|
|
> Change-Id: I7547e86b83202d66616749b8b31d4d0dff0abf07
|
|
> BUG: 1506104
|
|
> Signed-off-by: karthik-us <ksubrahm@redhat.com>
|
|
|
|
Change-Id: I7547e86b83202d66616749b8b31d4d0dff0abf07
|
|
BUG: 1419438
|
|
Signed-off-by: karthik-us <ksubrahm@redhat.com>
|
|
Reviewed-on: https://code.engineering.redhat.com/gerrit/123563
|
|
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
|
|
---
|
|
heal/src/glfs-heal.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/heal/src/glfs-heal.c b/heal/src/glfs-heal.c
|
|
index 22c9395..532b6f9 100644
|
|
--- a/heal/src/glfs-heal.c
|
|
+++ b/heal/src/glfs-heal.c
|
|
@@ -120,6 +120,7 @@ void
|
|
glfsh_print_hr_spb_status (char *path, uuid_t gfid, char *status)
|
|
{
|
|
printf ("%s\n", path);
|
|
+ fflush (stdout);
|
|
return;
|
|
}
|
|
|
|
@@ -133,6 +134,7 @@ void
|
|
glfsh_print_hr_heal_status (char *path, uuid_t gfid, char *status)
|
|
{
|
|
printf ("%s%s\n", path, status);
|
|
+ fflush (stdout);
|
|
}
|
|
|
|
#if (HAVE_LIB_XML)
|
|
--
|
|
1.8.3.1
|
|
|