]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
moved unlock to please.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 4 Dec 2007 21:53:19 +0000 (21:53 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 4 Dec 2007 21:53:19 +0000 (21:53 +0000)
git-svn-id: file:///svn/unbound/trunk@806 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
util/storage/lruhash.c

index 1b06a0702d21ee07d637231077211f94088d0fad..60c85a699f8b7892191776fb652b9cbcf1331cd3 100644 (file)
@@ -20,6 +20,7 @@
          entries one at a time. Instead they are removed and unlocked.
        - fptr_wlist for markdelfunc.
        - removed is_locked param from lruhash delkeyfunc.
+       - moved bin_unlock during bin_split purely to please.
 
 3 December 2007: Wouter
        - changed checkconf/ to smallapp/ to make room for more support tools.
index c1fe6e58c358df1e17501b8fabac7700f809cf4e..f0e2917f1e416df23cba3aeae2048f4fbbc99c62 100644 (file)
@@ -144,6 +144,7 @@ bin_split(struct lruhash* table, struct lruhash_bin* newa,
                }
                lock_quick_unlock(&newa[i].lock);
                lock_quick_unlock(&newa[newbit|i].lock);
+               lock_quick_unlock(&table->array[i].lock);
        }
 }
 
@@ -248,7 +249,6 @@ table_grow(struct lruhash* table)
        /* delete the old bins */
        lock_unprotect(&table->lock, table->array);
        for(i=0; i<table->size; i++) {
-               lock_quick_unlock(&table->array[i].lock);
                lock_quick_destroy(&table->array[i].lock);
        }
        free(table->array);