1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Restore log_suppress state when metadata backup file is up-to-date.

Author: Takahiro Yasui <tyasui@redhat.com>
This commit is contained in:
Takahiro Yasui 2009-03-23 22:57:27 +00:00
parent 36881b0133
commit fbd97a3425
2 changed files with 4 additions and 1 deletions

View File

@ -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
================================

View File

@ -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)