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:
parent
9f6098f724
commit
b43795c364
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.87 -
|
Version 2.02.87 -
|
||||||
===============================
|
===============================
|
||||||
|
Remove unused inconsistent_seqno variable in _vg_read().
|
||||||
Remove meaningless const type qualifiers on cast type.
|
Remove meaningless const type qualifiers on cast type.
|
||||||
Fix memory leak in dmsetup _message() memory allocation error path.
|
Fix memory leak in dmsetup _message() memory allocation error path.
|
||||||
Add test for fcntl error in singlenode client code.
|
Add test for fcntl error in singlenode client code.
|
||||||
|
@ -2835,7 +2835,6 @@ static struct volume_group *_vg_read(struct cmd_context *cmd,
|
|||||||
int inconsistent = 0;
|
int inconsistent = 0;
|
||||||
int inconsistent_vgid = 0;
|
int inconsistent_vgid = 0;
|
||||||
int inconsistent_pvs = 0;
|
int inconsistent_pvs = 0;
|
||||||
int inconsistent_seqno = 0;
|
|
||||||
int inconsistent_mdas = 0;
|
int inconsistent_mdas = 0;
|
||||||
int inconsistent_mda_count = 0;
|
int inconsistent_mda_count = 0;
|
||||||
unsigned use_precommitted = precommitted;
|
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) "
|
log_very_verbose("Not repairing VG %s metadata seqno (%d != %d) "
|
||||||
"as global/metadata_read_only is set.",
|
"as global/metadata_read_only is set.",
|
||||||
vgname, vg->seqno, correct_vg->seqno);
|
vgname, vg->seqno, correct_vg->seqno);
|
||||||
else {
|
else
|
||||||
inconsistent = 1;
|
inconsistent = 1;
|
||||||
inconsistent_seqno = 1;
|
|
||||||
}
|
|
||||||
if (vg->seqno > correct_vg->seqno) {
|
if (vg->seqno > correct_vg->seqno) {
|
||||||
free_vg(correct_vg);
|
free_vg(correct_vg);
|
||||||
correct_vg = 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) "
|
log_very_verbose("Not repairing VG %s metadata seqno (%d != %d) "
|
||||||
"as global/metadata_read_only is set.",
|
"as global/metadata_read_only is set.",
|
||||||
vgname, vg->seqno, correct_vg->seqno);
|
vgname, vg->seqno, correct_vg->seqno);
|
||||||
else {
|
else
|
||||||
inconsistent = 1;
|
inconsistent = 1;
|
||||||
inconsistent_seqno = 1;
|
|
||||||
}
|
|
||||||
if (!_update_pv_list(cmd->mem, &all_pvs, vg)) {
|
if (!_update_pv_list(cmd->mem, &all_pvs, vg)) {
|
||||||
_free_pv_list(&all_pvs);
|
_free_pv_list(&all_pvs);
|
||||||
free_vg(vg);
|
free_vg(vg);
|
||||||
|
Loading…
Reference in New Issue
Block a user