]> git.ipfire.org Git - thirdparty/libsolv.git/commit
Move dirs reallocation from dirpool_make_dirtraverse to dirpool_add_dir
authorMichael Schroeder <mls@suse.de>
Mon, 18 May 2026 10:48:09 +0000 (12:48 +0200)
committerMichael Schroeder <mls@suse.de>
Mon, 18 May 2026 10:48:09 +0000 (12:48 +0200)
commitd8a3fcbd4e9b1287ff51e2c8cf1c6b6be9f1f600
tree14b194b34ef367c76dec5b1ae20d30c2b5fd5c94
parentba97cdd0a958a192fa0708adf748c1adbf467a7f
Move dirs reallocation from dirpool_make_dirtraverse to dirpool_add_dir

repo_add_solv does not use the correct DIR_BLOCK allocation, so we
need to extend the dirs array the first time we add a new directory.

We used to do this in dirpool_make_dirtraverse, but since commit
fa35e8672b478c410429d403b887277d7b17e57d the dirtraverse array is
no longer created when calling dirpool_add_dir. So we now do it
the first time the hash is created.
src/dirpool.c
src/repo_solv.c