mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-10 07:10:06 +00:00
Update file_mtime after deciding to flush the cache.
This commit is contained in:
parent
5d15fc5c35
commit
3d08d8004c
@ -150,8 +150,11 @@ prune_cache (struct database *table, time_t now)
|
||||
else
|
||||
{
|
||||
if (st.st_mtime != table->file_mtime)
|
||||
/* The file changed. Invalidate all entries. */
|
||||
now = LONG_MAX;
|
||||
{
|
||||
/* The file changed. Invalidate all entries. */
|
||||
now = LONG_MAX;
|
||||
st.st_mtime = table->file_mtime;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user