From: Wouter Wijngaards Date: Tue, 4 Dec 2007 21:53:19 +0000 (+0000) Subject: moved unlock to please. X-Git-Tag: release-0.9~130 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11a764a82f087a5412ec1b37608da0ce4d892f58;p=thirdparty%2Funbound.git moved unlock to please. git-svn-id: file:///svn/unbound/trunk@806 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/doc/Changelog b/doc/Changelog index 1b06a0702..60c85a699 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -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. diff --git a/util/storage/lruhash.c b/util/storage/lruhash.c index c1fe6e58c..f0e2917f1 100644 --- a/util/storage/lruhash.c +++ b/util/storage/lruhash.c @@ -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; isize; i++) { - lock_quick_unlock(&table->array[i].lock); lock_quick_destroy(&table->array[i].lock); } free(table->array);