mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
debug: for checking how find_lv works
To see whether use of 'radix_tree' for every find_lv() call helps. As if we drop radix_tree after import, this code then may fallback to old slower find_lv_in_vg.
This commit is contained in:
parent
6f1f6471d6
commit
00e72efee2
@ -1347,6 +1347,12 @@ static struct volume_group *_read_vg(struct cmd_context *cmd,
|
|||||||
vg->pv_names = NULL; /* PV names are no longer valid outside of _read_vg() */
|
vg->pv_names = NULL; /* PV names are no longer valid outside of _read_vg() */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (0 && vg->lv_names) {
|
||||||
|
/* TODO: update also rename function to keep lv_names always valid and usable */
|
||||||
|
radix_tree_destroy(vg->lv_names);
|
||||||
|
vg->lv_names = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Finished.
|
* Finished.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user