diff options
Diffstat (limited to 'nscd/aicache.c')
-rw-r--r-- | nscd/aicache.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/nscd/aicache.c b/nscd/aicache.c index 4db3e65bd1..918efc9f39 100644 --- a/nscd/aicache.c +++ b/nscd/aicache.c @@ -556,10 +556,8 @@ next_nip: /* Now get the lock to safely insert the records. */ pthread_rwlock_rdlock (&db->lock); - if (cache_add (req->type, key_copy, req->key_len, &dataset->head, true, - db, uid) < 0) - /* Ensure the data can be recovered. */ - dataset->head.usable = false; + (void) cache_add (req->type, key_copy, req->key_len, &dataset->head, + true, db, uid); pthread_rwlock_unlock (&db->lock); |