read as much as possible, even when reading log records.
This commit is contained in:
parent
1878fc18d5
commit
b591bb1b72
1 changed files with 0 additions and 4 deletions
|
@ -913,10 +913,6 @@ cfs_read(int fd, void *buf, unsigned size)
|
|||
lp.size = remains;
|
||||
r = read_log_page(&hdr,
|
||||
fdp->next_log_entry > 0 ? fdp->next_log_entry - 1 : -1, &lp);
|
||||
if(r >= 0) {
|
||||
offset += r;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(r < 0) {
|
||||
r = remains > COFFEE_PAGE_SIZE ? COFFEE_PAGE_SIZE : remains;
|
||||
|
|
Loading…
Reference in a new issue