* nscd/hstcache.c (cache_addhst): Minimal optimization.
This commit is contained in:
parent
2a01ce56b7
commit
a30d41c1d2
|
@ -1,5 +1,7 @@
|
||||||
2007-08-21 Ulrich Drepper <drepper@redhat.com>
|
2007-08-21 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* nscd/hstcache.c (cache_addhst): Minimal optimization.
|
||||||
|
|
||||||
[BZ #4925]
|
[BZ #4925]
|
||||||
* debug/pcprofiledump.c: Turn on internationalization by calling
|
* debug/pcprofiledump.c: Turn on internationalization by calling
|
||||||
setlocale. Patch mostly by Benno Schulenberg.
|
setlocale. Patch mostly by Benno Schulenberg.
|
||||||
|
|
|
@ -221,7 +221,7 @@ cache_addhst (struct database_dyn *db, int fd, request_header *req,
|
||||||
the current cache handling cannot handle and it is more than
|
the current cache handling cannot handle and it is more than
|
||||||
questionable whether it is worthwhile complicating the cache
|
questionable whether it is worthwhile complicating the cache
|
||||||
handling just for handling such a special case. */
|
handling just for handling such a special case. */
|
||||||
if (he == NULL && hst->h_addr_list[1] == NULL)
|
if (he == NULL && h_addr_list_cnt == 1)
|
||||||
{
|
{
|
||||||
dataset = (struct dataset *) mempool_alloc (db,
|
dataset = (struct dataset *) mempool_alloc (db,
|
||||||
total + req->key_len);
|
total + req->key_len);
|
||||||
|
|
Loading…
Reference in New Issue