Skip to content

Commit

Permalink
Fix Win_IOHandle
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffery committed Jan 2, 2025
1 parent c846eef commit 7777f37
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion port/win/io_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,7 @@ WinRandomAccessFileAsyncIo::WinRandomAccessFileAsyncIo(
const FileOptions& options)
: WinRandomAccessFile(fname, hFile, alignment, options) {}

Win_IOHandle::Win_IOHandle(std::function<void(const FSReadRequest&, void*)> _cb,
Win_IOHandle::Win_IOHandle(std::function<void(FSReadRequest&, void*)> _cb,
void* _cb_arg, uint64_t _offset, size_t _len,
char* _scratch, WinFileData* _file_data)
: cb(_cb),
Expand Down
6 changes: 3 additions & 3 deletions port/win/io_win.h
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ class WinFileLock : public FileLock {
};

struct Win_IOHandle {
std::function<void(const FSReadRequest&, void*)> cb;
std::function<void(FSReadRequest&, void*)> cb;
void* cb_arg;
uint64_t offset;
size_t len;
Expand All @@ -538,8 +538,8 @@ struct Win_IOHandle {
bool is_finished;
WinFileData* file_data;

Win_IOHandle(std::function<void(const FSReadRequest&, void*)> _cb,
void* _cb_arg, uint64_t _offset, size_t _len, char* _scratch,
Win_IOHandle(std::function<void(FSReadRequest&, void*)> _cb, void* _cb_arg,
uint64_t _offset, size_t _len, char* _scratch,
WinFileData* _file_data);
~Win_IOHandle();
};
Expand Down

0 comments on commit 7777f37

Please sign in to comment.