Skip to content

Commit

Permalink
Walk: open the DirectoryReader with io_uring
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann committed Dec 6, 2024
1 parent 1a28e0f commit 6bb39cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Walk.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ try {
*new WalkDirectory(uring, parent, co_await Uring::CoOpen(uring, parent.fd, name.c_str(), O_PATH|O_DIRECTORY, 0)),
};

ScanDirectory(*directory, OpenDirectory(directory->fd, "."));
ScanDirectory(*directory, co_await Uring::CoOpen(uring, directory->fd, ".", O_DIRECTORY, 0));
} catch (...) {
fmt::print(stderr, "Failed to scan directory: {}\n", std::current_exception());
}
Expand Down

0 comments on commit 6bb39cd

Please sign in to comment.