mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-16 01:07:11 +00:00
Fix an error to calculate no data page bytes (#2122)
Co-authored-by: Takeshi Nakatani <ggtakec@gmail.com>
This commit is contained in:
parent
9d00b8d4a8
commit
4f22354aae
@ -774,7 +774,7 @@ bool PageList::GetNoDataPageLists(fdpage_list_t& nodata_pages, off_t start, size
|
||||
|
||||
fdpage tmppage;
|
||||
tmppage.offset = std::max(iter->offset, start);
|
||||
tmppage.bytes = (-1 != stop_pos ? iter->bytes : std::min(iter->bytes, (stop_pos - tmppage.offset)));
|
||||
tmppage.bytes = (-1 == stop_pos ? iter->bytes : std::min(iter->bytes, (stop_pos - tmppage.offset)));
|
||||
tmppage.loaded = iter->loaded;
|
||||
tmppage.modified = iter->modified;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user