You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The behavior of PosixMmapReadableFile::Read and PosixRandomAccessFile::Read should be same.
Actual behavior
When the param offset is beyound file size, PosixMmapReadableFile::Read returns IOError but PosixRandomAccessFile::Read returns OK.
Steps to reproduce the behavior
Create a PosixMmapReadableFile and a PosixRandomAccessFile, write same content, then read beyound file size.
The fix should be simple, the key is which behavior is expected. This issue was found in our branch while we add PosixMmapReadableFile to env_basic_test.cc.
The text was updated successfully, but these errors were encountered:
rockeet
added a commit
to topling/toplingdb
that referenced
this issue
Aug 9, 2024
Expected behavior
The behavior of
PosixMmapReadableFile::Read
andPosixRandomAccessFile::Read
should be same.Actual behavior
When the param
offset
is beyound file size, PosixMmapReadableFile::Read returns IOError but PosixRandomAccessFile::Read returns OK.Steps to reproduce the behavior
Create a PosixMmapReadableFile and a PosixRandomAccessFile, write same content, then read beyound file size.
The fix should be simple, the key is which behavior is expected. This issue was found in our branch while we add PosixMmapReadableFile to
env_basic_test.cc
.The text was updated successfully, but these errors were encountered: