From: Michael Schroeder Date: Wed, 21 Dec 2011 11:28:46 +0000 (+0100) Subject: - clear lastmarkerpos when recreating the hash X-Git-Tag: BASE-SuSE-Code-12_2-Branch~227 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22bfbde6d4c8a71c34b8194fa4e75ccc9bdd7516;p=thirdparty%2Flibsolv.git - clear lastmarkerpos when recreating the hash --- diff --git a/src/repo.c b/src/repo.c index 4a4a69f7..d6dcf605 100644 --- a/src/repo.c +++ b/src/repo.c @@ -330,6 +330,7 @@ repo_addid_dep_hash(Repo *repo, Offset olddeps, Id id, Id marker, int size) /* maintain hash and lastmarkerpos */ if (repo->lastidhash_idarraysize != repo->idarraysize || size * 2 > repo->lastidhash_mask || repo->lastmarker != marker) { + repo->lastmarkerpos = 0; if (size * 2 > repo->lastidhash_mask) { repo->lastidhash_mask = mkmask(size < REPO_ADDID_DEP_HASHMIN ? REPO_ADDID_DEP_HASHMIN : size);