mirror of
https://github.com/ceph/ceph
synced 2024-12-17 00:46:05 +00:00
hadoop: ENOTDIR should be negative
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
This commit is contained in:
parent
6deea1c29b
commit
60e1e148bf
@ -281,7 +281,7 @@ public class CephFileSystem extends FileSystem {
|
||||
if (result != 0) {
|
||||
LOG.warn(
|
||||
"mkdirs: make directory " + abs_path + "Failing with result " + result);
|
||||
if (ceph.ENOTDIR == result) {
|
||||
if (-ceph.ENOTDIR == result) {
|
||||
throw new IOException("Parent path is not a directory");
|
||||
}
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user