mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-19 07:00:08 +00:00
Add "notfound" data to cache, not iov pointer.
This commit is contained in:
parent
0c7163dc35
commit
150c1ed496
@ -104,7 +104,7 @@ cache_addgr (struct database *db, int fd, request_header *req, void *key,
|
||||
/* Now get the lock to safely insert the records. */
|
||||
pthread_rwlock_rdlock (&db->lock);
|
||||
|
||||
cache_add (req->type, copy, req->key_len, &iov_notfound,
|
||||
cache_add (req->type, copy, req->key_len, ¬found,
|
||||
sizeof (notfound), (void *) -1, 0, t, db);
|
||||
|
||||
pthread_rwlock_unlock (&db->lock);
|
||||
|
@ -115,7 +115,7 @@ cache_addhst (struct database *db, int fd, request_header *req, void *key,
|
||||
/* Now get the lock to safely insert the records. */
|
||||
pthread_rwlock_rdlock (&db->lock);
|
||||
|
||||
cache_add (req->type, copy, req->key_len, &iov_notfound,
|
||||
cache_add (req->type, copy, req->key_len, ¬found,
|
||||
sizeof (notfound), (void *) -1, 0, t, db);
|
||||
|
||||
pthread_rwlock_unlock (&db->lock);
|
||||
|
@ -111,7 +111,7 @@ cache_addpw (struct database *db, int fd, request_header *req, void *key,
|
||||
/* Now get the lock to safely insert the records. */
|
||||
pthread_rwlock_rdlock (&db->lock);
|
||||
|
||||
cache_add (req->type, copy, req->key_len, &iov_notfound,
|
||||
cache_add (req->type, copy, req->key_len, ¬found,
|
||||
sizeof (notfound), (void *) -1, 0, t, db);
|
||||
|
||||
pthread_rwlock_unlock (&db->lock);
|
||||
|
Loading…
Reference in New Issue
Block a user