diff options
author | Ulrich Drepper <drepper@redhat.com> | 2007-01-16 00:23:46 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2007-01-16 00:23:46 +0000 |
commit | f7685cef4c102f9def3235bd93d014ab106e8d55 (patch) | |
tree | 49c3d8182851f75f8fa5c21f161f9247f761e6f3 /nscd | |
parent | d68f5d2cff7cd9fb5f1f5dfa4c24d245766bab49 (diff) | |
download | glibc-f7685cef4c102f9def3235bd93d014ab106e8d55.zip glibc-f7685cef4c102f9def3235bd93d014ab106e8d55.tar.gz glibc-f7685cef4c102f9def3235bd93d014ab106e8d55.tar.bz2 |
(cache_add): Record the failure to add to the cache.
Diffstat (limited to 'nscd')
-rw-r--r-- | nscd/cache.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nscd/cache.c b/nscd/cache.c index e63a4f8..73e7902 100644 --- 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; |