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

import_vsn1: increate hash size

With larger amount of LV hashing buckets within VG,
until better structures for dynamic handling of LV elements will be used.
This commit is contained in:
Zdenek Kabelac 2024-10-09 17:13:56 +02:00
parent 65ee09d840
commit 4583200af6

View File

@ -1085,7 +1085,7 @@ static struct volume_group *_read_vg(struct cmd_context *cmd,
* The lv hash memorizes the lv section names -> lv
* structures.
*/
if (!(lv_hash = dm_hash_create(1023))) {
if (!(lv_hash = dm_hash_create(8181))) {
log_error("Couldn't create lv hash table.");
goto bad;
}