invalid acl for ZOO_CREATOR_ALL_ACL

2010-10-19 Thread FANG Yang
hi, all I have a simple zk client written by c ,which is attachment #1. When i use ZOO_CREATOR_ALL_ACL, the ret code of zoo_create is -114((Invalid ACL specified definde in zookeeper.h)), but after i replace it with ZOO_OPEN_ACL_UNSAFE, it work. Zookeeper Programmer's Guide mention that

Re: invalid acl for ZOO_CREATOR_ALL_ACL

2010-10-19 Thread FANG Yang
2010/10/19 FANG Yang fa...@douban.com hi, all I have a simple zk client written by c ,which is attachment #1. When i use ZOO_CREATOR_ALL_ACL, the ret code of zoo_create is -114((Invalid ACL specified definde in zookeeper.h)), but after i replace it with ZOO_OPEN_ACL_UNSAFE, it work.

Re: invalid acl for ZOO_CREATOR_ALL_ACL

2010-10-19 Thread Benjamin Reed
which scheme are you using? ben On 10/18/2010 11:57 PM, FANG Yang wrote: 2010/10/19 FANG Yangfa...@douban.com hi, all I have a simple zk client written by c ,which is attachment #1. When i use ZOO_CREATOR_ALL_ACL, the ret code of zoo_create is -114((Invalid ACL specified definde in

Re: invalid acl for ZOO_CREATOR_ALL_ACL

2010-10-19 Thread FANG Yang
2010/10/20 Benjamin Reed br...@yahoo-inc.com which scheme are you using? ben I Just call zoo_add_auth in c souce code, as follows: zoo_add_auth(zh,digest,pat:passwd,10,0,0) On 10/18/2010 11:57 PM, FANG Yang wrote: 2010/10/19 FANG Yangfa...@douban.com hi, all I have a