Skip to content

Commit

Permalink
Address review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kingcrimsontianyu committed Nov 12, 2024
1 parent 9e3ef17 commit 785a855
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/file_handle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ FileHandle::FileHandle(const std::string& file_path,
_initialized{true},
_compat_mode{compat_mode}
{
_compat_mode = defaults::infer_compat_mode_from_runtime_sys(_compat_mode);

if (_compat_mode == CompatMode::ON) {
return; // Nothing to do in compatibility mode
} else if (_compat_mode == CompatMode::AUTO) {
_compat_mode = defaults::infer_compat_mode_from_runtime_sys(_compat_mode);
}

// Try to open the file with the O_DIRECT flag. Fall back to compatibility mode, if it fails.
Expand Down

0 comments on commit 785a855

Please sign in to comment.