HDFS-7637. Fix the check condition for reserved path. Contributed by Yi Liu.
This commit is contained in:
parent
4a5c3a4cfe
commit
e843a0a8ce
|
@ -725,6 +725,8 @@ Release 2.7.0 - UNRELEASED
|
||||||
using more than 1 DataNode and more than 2 storage locations per DataNode.
|
using more than 1 DataNode and more than 2 storage locations per DataNode.
|
||||||
(cnauroth)
|
(cnauroth)
|
||||||
|
|
||||||
|
HDFS-7637. Fix the check condition for reserved path. (Yi Liu via jing9)
|
||||||
|
|
||||||
Release 2.6.1 - UNRELEASED
|
Release 2.6.1 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -1311,7 +1311,7 @@ public class FSDirectory implements Closeable {
|
||||||
|
|
||||||
/** Check if a given path is reserved */
|
/** Check if a given path is reserved */
|
||||||
public static boolean isReservedName(String src) {
|
public static boolean isReservedName(String src) {
|
||||||
return src.startsWith(DOT_RESERVED_PATH_PREFIX);
|
return src.startsWith(DOT_RESERVED_PATH_PREFIX + Path.SEPARATOR);
|
||||||
}
|
}
|
||||||
|
|
||||||
static boolean isReservedRawName(String src) {
|
static boolean isReservedRawName(String src) {
|
||||||
|
|
Loading…
Reference in New Issue