Skip to content

Commit

Permalink
Fix build ppl
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffery committed Jan 2, 2025
1 parent fced6bc commit c846eef
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion db/db_test_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ Options DBTestBase::GetOptions(
"NewRandomAccessFile:O_DIRECT");
ROCKSDB_NAMESPACE::SyncPoint::GetInstance()->ClearCallBack(
"NewWritableFile:O_DIRECT");
#else if defined(OS_WIN)
#elif defined(OS_WIN)
ROCKSDB_NAMESPACE::SyncPoint::GetInstance()->ClearCallBack(
"NewRandomAccessFile:FILE_FLAG_NO_BUFFERING");
ROCKSDB_NAMESPACE::SyncPoint::GetInstance()->ClearCallBack(
Expand Down
2 changes: 1 addition & 1 deletion port/win/io_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,7 @@ IOStatus WinRandomAccessFileAsyncIo::MultiRead(FSReadRequest* reqs,

IOStatus WinRandomAccessFileAsyncIo::ReadAsync(
FSReadRequest& req, const IOOptions& /*opts*/,
std::function<void(const FSReadRequest&, void*)> cb, void* cb_arg,
std::function<void(FSReadRequest&, void*)> cb, void* cb_arg,
void** io_handle, IOHandleDeleter* del_fn, IODebugContext* /*dbg*/) {
// Check buffer alignment
if (file_base_->use_direct_io()) {
Expand Down
9 changes: 5 additions & 4 deletions port/win/io_win.h
Original file line number Diff line number Diff line change
Expand Up @@ -314,10 +314,11 @@ class WinRandomAccessFileAsyncIo : public WinRandomAccessFile {
const IOOptions& options,
IODebugContext* dbg) override;
// EXPERIMENTAL
virtual IOStatus ReadAsync(
FSReadRequest& req, const IOOptions& opts,
std::function<void(const FSReadRequest&, void*)> cb, void* cb_arg,
void** io_handle, IOHandleDeleter* del_fn, IODebugContext* dbg) override;
virtual IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts,
std::function<void(FSReadRequest&, void*)> cb,
void* cb_arg, void** io_handle,
IOHandleDeleter* del_fn,
IODebugContext* dbg) override;
};

// This is a sequential write class. It has been mimicked (as others) after
Expand Down

0 comments on commit c846eef

Please sign in to comment.