From fbd97a342519a554a43a4ff0d2a91da7354223ca Mon Sep 17 00:00:00 2001 From: Takahiro Yasui Date: Mon, 23 Mar 2009 22:57:27 +0000 Subject: [PATCH] Restore log_suppress state when metadata backup file is up-to-date. Author: Takahiro Yasui --- WHATS_NEW | 1 + lib/format_text/archiver.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/WHATS_NEW b/WHATS_NEW index ee434329c..c44e8fe3b 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -10,6 +10,7 @@ Version 2.02.46 - Fix error message when adding metadata directory to internal list fails. Fix size and error message of memory allocation at backup initialization. Remove old metadata backup file after renaming vg. + Restore log_suppress state when metadata backup file is up-to-date. Version 2.02.45 - 3rd March 2009 ================================ diff --git a/lib/format_text/archiver.c b/lib/format_text/archiver.c index 7e92de3a5..a8fe3f0e0 100644 --- a/lib/format_text/archiver.c +++ b/lib/format_text/archiver.c @@ -405,8 +405,10 @@ void check_current_backup(struct volume_group *vg) /* Up-to-date backup exists? */ if ((vg_backup = backup_read_vg(vg->cmd, vg->name, path)) && (vg->seqno == vg_backup->seqno) && - (id_equal(&vg->id, &vg_backup->id))) + (id_equal(&vg->id, &vg_backup->id))) { + log_suppress(0); return; + } log_suppress(0); if (vg_backup)