It breaks the cache system completely.
This commit is contained in:
Fufu Fang 2021-08-29 10:52:49 +01:00
parent 8777cf90bc
commit 4bf5631714
No known key found for this signature in database
GPG Key ID: 0F6BB5EF6F8BB729
1 changed files with 1 additions and 1 deletions

View File

@ -988,7 +988,7 @@ long Cache_read(Cache *cf, char * const output_buf, const off_t len,
off_t dl_offset = (offset_start + len) / cf->blksz * cf->blksz;
/* ------------------ Check if the segment already exists ---------------*/
if (dl_offset == 0 || Seg_exist(cf, dl_offset)) {
if (Seg_exist(cf, dl_offset)) {
send = Data_read(cf, (uint8_t *) output_buf, len, offset_start);
goto bgdl;
} else {