- 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 4a4a69f..d6dcf60 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);