rsp = new GetChildrenResponse(children);
break;
}
case OpCode.getChildren2: {
lastOp = "GETC";
GetChildren2Request getChildren2Request = new GetChildren2Request();
ZooKeeperServer.byteBuffer2Record(request.request,
getChildren2Request);
Stat stat = new Stat();
DataNode n = getZKDatabase().getNode(
getChildren2Request.getPath());
if (n == null) {
throw new KeeperException.NoNodeException();
}
Long aclG;
synchronized (n) {
aclG = n.acl;
}
checkACL(getZKDatabase().convertLong(aclG), ZooDefs.Perms.READ,
request.authInfo);
List<String> children = getZKDatabase().getChildren(
getChildren2Request.getPath(), stat,
getChildren2Request.getWatch() ? cnxn : null);
rsp = new GetChildren2Response(children, stat);
break;
}
}
} catch (SessionMovedException e) {