1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

Remove unused inconsistent_seqno

Last usage was removed in Petr's commit related to VG mda repair fix
where relaxed check starts to ignore inconsistencies coming from
PVs that are marked MISSING - thus removing unused variable.
This commit is contained in:
Zdenek Kabelac 2011-08-04 15:18:10 +00:00
parent 9f6098f724
commit b43795c364
2 changed files with 5 additions and 7 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.87 -
===============================
Remove unused inconsistent_seqno variable in _vg_read().
Remove meaningless const type qualifiers on cast type.
Fix memory leak in dmsetup _message() memory allocation error path.
Add test for fcntl error in singlenode client code.

View File

@ -2835,7 +2835,6 @@ static struct volume_group *_vg_read(struct cmd_context *cmd,
int inconsistent = 0;
int inconsistent_vgid = 0;
int inconsistent_pvs = 0;
int inconsistent_seqno = 0;
int inconsistent_mdas = 0;
int inconsistent_mda_count = 0;
unsigned use_precommitted = precommitted;
@ -2931,10 +2930,9 @@ static struct volume_group *_vg_read(struct cmd_context *cmd,
log_very_verbose("Not repairing VG %s metadata seqno (%d != %d) "
"as global/metadata_read_only is set.",
vgname, vg->seqno, correct_vg->seqno);
else {
else
inconsistent = 1;
inconsistent_seqno = 1;
}
if (vg->seqno > correct_vg->seqno) {
free_vg(correct_vg);
correct_vg = vg;
@ -3100,10 +3098,9 @@ static struct volume_group *_vg_read(struct cmd_context *cmd,
log_very_verbose("Not repairing VG %s metadata seqno (%d != %d) "
"as global/metadata_read_only is set.",
vgname, vg->seqno, correct_vg->seqno);
else {
else
inconsistent = 1;
inconsistent_seqno = 1;
}
if (!_update_pv_list(cmd->mem, &all_pvs, vg)) {
_free_pv_list(&all_pvs);
free_vg(vg);