comparison src/core/ngx_open_file_cache.c @ 2063:67a29af877ed

initialize of.uniq in ngx_open_cached_file()
author Igor Sysoev <igor@sysoev.ru>
date Mon, 23 Jun 2008 13:35:34 +0000
parents b52cb9bf2064
children 23930ccd2642
comparison
equal deleted inserted replaced
2062:90312b616162 2063:67a29af877ed
187 187
188 goto add_event; 188 goto add_event;
189 } 189 }
190 190
191 if ((file->event && file->use_event) 191 if ((file->event && file->use_event)
192 || (file->event == NULL && now - file->created < of->valid)) 192 || (file->event == NULL
193 && (of->uniq == 0 || of->uniq == file->uniq)
194 && now - file->created < of->valid))
193 { 195 {
194 if (file->err == 0) { 196 if (file->err == 0) {
195 197
196 of->fd = file->fd; 198 of->fd = file->fd;
197 of->uniq = file->uniq; 199 of->uniq = file->uniq;