HDFS-7637. Fix the check condition for reserved path. Contributed by Yi Liu.

(cherry picked from commit e843a0a8ce)
This commit is contained in:
Jing Zhao 2015-01-19 10:28:29 -08:00
parent 401c7d72f5
commit 5da33c5b5d
2 changed files with 3 additions and 1 deletions

View File

@ -456,6 +456,8 @@ Release 2.7.0 - UNRELEASED
using more than 1 DataNode and more than 2 storage locations per DataNode.
(cnauroth)
HDFS-7637. Fix the check condition for reserved path. (Yi Liu via jing9)
Release 2.6.1 - UNRELEASED
INCOMPATIBLE CHANGES

View File

@ -1237,7 +1237,7 @@ public static boolean isReservedName(INode inode) {
/** Check if a given path is reserved */
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) {