mirror of
https://github.com/google/leveldb.git
synced 2025-06-07 18:02:42 +08:00
Merge 0602f490be
into ac691084fd
This commit is contained in:
commit
f77281e4b0
@ -208,7 +208,7 @@ class WindowsRandomAccessFile : public RandomAccessFile {
|
|||||||
Status Read(uint64_t offset, size_t n, Slice* result,
|
Status Read(uint64_t offset, size_t n, Slice* result,
|
||||||
char* scratch) const override {
|
char* scratch) const override {
|
||||||
DWORD bytes_read = 0;
|
DWORD bytes_read = 0;
|
||||||
OVERLAPPED overlapped = {0};
|
OVERLAPPED overlapped = {};
|
||||||
|
|
||||||
overlapped.OffsetHigh = static_cast<DWORD>(offset >> 32);
|
overlapped.OffsetHigh = static_cast<DWORD>(offset >> 32);
|
||||||
overlapped.Offset = static_cast<DWORD>(offset);
|
overlapped.Offset = static_cast<DWORD>(offset);
|
||||||
|
Loading…
Reference in New Issue
Block a user