1
0
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:
Zdenek Kabelac 2024-10-24 22:43:38 +02:00
parent 6f1f6471d6
commit 00e72efee2

View File

@ -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.
*/ */