Skip to content

Commit

Permalink
read
Browse files Browse the repository at this point in the history
  • Loading branch information
hx235 committed Jun 25, 2024
1 parent e0ddbee commit c413d48
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions utilities/fault_injection_fs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -846,8 +846,8 @@ IOStatus FaultInjectionTestFS::NewRandomAccessFile(
if (!IsFilesystemActive()) {
return GetError();
}
IOStatus io_s = MaybeInjectThreadLocalError(
FaultInjectionIOType::kMetadataWrite, file_opts.io_options);
IOStatus io_s = MaybeInjectThreadLocalError(FaultInjectionIOType::kRead,
file_opts.io_options);
if (!io_s.ok()) {
return io_s;
}
Expand All @@ -866,8 +866,8 @@ IOStatus FaultInjectionTestFS::NewSequentialFile(
if (!IsFilesystemActive()) {
return GetError();
}
IOStatus io_s = MaybeInjectThreadLocalError(
FaultInjectionIOType::kMetadataWrite, file_opts.io_options);
IOStatus io_s = MaybeInjectThreadLocalError(FaultInjectionIOType::kRead,
file_opts.io_options);
if (!io_s.ok()) {
return io_s;
}
Expand Down

0 comments on commit c413d48

Please sign in to comment.