From 75c0f9c701a7a5f1e9caeee1a6cd7164e6635dfb Mon Sep 17 00:00:00 2001 From: "John L. Hammond" Date: Wed, 2 May 2018 09:09:05 -0500 Subject: [PATCH] LU-10978 utils: preserve lustre_rsync state In lustre_rsync, if debugging is enabled then we zero-out info and ext in each iteration of the main loop of lr_replicate(). This may prevent the consumed changelog entries from being cleared at the end of lr_replicate(). Signed-off-by: John L. Hammond Change-Id: Ibd089524ca6cd6f488fc3558882cc431fdf65de7 Reviewed-on: https://review.whamcloud.com/32246 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Jian Yu Reviewed-by: James Nunez Reviewed-by: Oleg Drokin --- lustre/utils/lustre_rsync.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lustre/utils/lustre_rsync.c b/lustre/utils/lustre_rsync.c index 7db491b..e4bc0e5 100644 --- a/lustre/utils/lustre_rsync.c +++ b/lustre/utils/lustre_rsync.c @@ -1668,10 +1668,6 @@ int lr_replicate() break; } lr_clear_cl(info, 0); - if (debug) { - bzero(info, sizeof(struct lr_info)); - bzero(ext, sizeof(struct lr_info)); - } } llapi_changelog_fini(&changelog_priv); -- 1.8.3.1