projects
/
external
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d68f5d2
)
(cache_add): Record the failure to add to the cache.
author
Ulrich Drepper
<drepper@redhat.com>
Tue, 16 Jan 2007 00:23:46 +0000
(
00:23
+0000)
committer
Ulrich Drepper
<drepper@redhat.com>
Tue, 16 Jan 2007 00:23:46 +0000
(
00:23
+0000)
nscd/cache.c
patch
|
blob
|
history
diff --git
a/nscd/cache.c
b/nscd/cache.c
index
e63a4f8
..
73e7902
100644
(file)
--- a/
nscd/cache.c
+++ b/
nscd/cache.c
@@
-153,7
+153,10
@@
cache_add (int type, const void *key, size_t len, struct datahead *packet,
newp = mempool_alloc (table, sizeof (struct hashentry));
/* If we cannot allocate memory, just do not do anything. */
if (newp == NULL)
- return -1;
+ {
+ ++table->head->addfailed;
+ return -1;
+ }
newp->type = type;
newp->first = first;