mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-20 16:40:35 +00:00
reactor: fix broken errno check fixing missing file behaviour
Code checked "result" instead of "error" (where actual error code is) Signed-off-by: Calle Wilund <calle@cloudius-systems.com>
This commit is contained in:
@@ -430,7 +430,7 @@ reactor::file_type(sstring name) {
|
||||
return wrap_syscall(ret, st);
|
||||
}).then([] (syscall_result_extra<struct stat> sr) {
|
||||
if (long(sr.result) == -1) {
|
||||
if (sr.result != ENOENT && sr.result != ENOTDIR) {
|
||||
if (sr.error != ENOENT && sr.error != ENOTDIR) {
|
||||
sr.throw_if_error();
|
||||
}
|
||||
return make_ready_future<std::experimental::optional<directory_entry_type> >
|
||||
|
||||
Reference in New Issue
Block a user