mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 10:50:07 +00:00
[BZ #4946]
* nscd/connections.c (handle_request): Using sendfile always requires that mmap is used for the database. Patch by Petr Baudis <pasky@suse.cz>.
This commit is contained in:
parent
c44d3bdf14
commit
1465dd0f9e
@ -1,5 +1,10 @@
|
||||
2007-08-21 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
[BZ #4946]
|
||||
* nscd/connections.c (handle_request): Using sendfile always
|
||||
requires that mmap is used for the database.
|
||||
Patch by Petr Baudis <pasky@suse.cz>.
|
||||
|
||||
[BZ #4905]
|
||||
* nscd/hstcache.c (cache_addhst): When reloading an entry which
|
||||
suddenly has two or more addresses, ignore it and remove the old
|
||||
|
@ -1016,7 +1016,7 @@ cannot handle old request version %d; current version is %d"),
|
||||
ssize_t nwritten;
|
||||
|
||||
#ifdef HAVE_SENDFILE
|
||||
if (db->mmap_used || !cached->notfound)
|
||||
if (__builtin_expect (db->mmap_used, 1))
|
||||
{
|
||||
assert (db->wr_fd != -1);
|
||||
assert ((char *) cached->data > (char *) db->data);
|
||||
|
Loading…
Reference in New Issue
Block a user