HBASE-11342 The method isChildReadLock in class ZKInterProcessLockBase is wrong (Qianxi Zhang)

This commit is contained in:
Michael Stack 2014-06-13 12:35:49 -07:00
parent 492f1f6d44
commit 98deb39ace
1 changed files with 1 additions and 1 deletions

View File

@ -246,7 +246,7 @@ public abstract class ZKInterProcessLockBase implements InterProcessLock {
protected static boolean isChildReadLock(String child) {
int idx = child.lastIndexOf(ZKUtil.ZNODE_PATH_SEPARATOR);
String suffix = child.substring(idx + 1);
return suffix.startsWith(WRITE_LOCK_CHILD_NODE_PREFIX);
return suffix.startsWith(READ_LOCK_CHILD_NODE_PREFIX);
}
/**