curator-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Berglund <mab...@gmail.com>
Subject Typo in ZKPaths.mkdirs?
Date Wed, 10 Dec 2014 01:26:43 GMT
Hi everyone,
In ZKPaths.mkdirs, when it's creating parent nodes in the path, it's using
the full path's ACLProvider, like this:
    String subPath = path.substring(0, pos);
    if ( zookeeper.exists(subPath, false) == null )
    {
        ...
            List<ACL> acl = null;
            ...
                        acl = aclProvider.getAclForPath(path);
            ...
            zookeeper.create(subPath, new byte[0], acl,
CreateMode.PERSISTENT);

It seems to me that the call to getAclForPath should use subPath instead of
path, so the ACLProvider knows what node is about to be created, but maybe
this is by design?

Thanks,
Martin

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message