]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
- clear lastmarkerpos when recreating the hash
authorMichael Schroeder <mls@suse.de>
Wed, 21 Dec 2011 11:28:46 +0000 (12:28 +0100)
committerMichael Schroeder <mls@suse.de>
Wed, 21 Dec 2011 11:28:46 +0000 (12:28 +0100)
src/repo.c

index 4a4a69f76ff03343e8b26535b700675cb08e8b38..d6dcf60597ded55603885d4b69d11dee12a0d988 100644 (file)
@@ -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);