Yeah, I just found that.   Unfortunately we use the the zkperl bindings, which 
in turn use the single-threaded C client library, where sync() doesn't seem to 
be implemented.

I opened https://issues.apache.org/jira/browse/ZOOKEEPER-1167 to track.

On Aug 31, 2011, at 1:13 PM, Patrick Hunt wrote:

> In the c client it's called "zoo_async"
> 
> Patrick
> 
> On Wed, Aug 31, 2011 at 7:05 AM, nicholas harteau <[email protected]> wrote:
>> 
>> There don't seem to be any references to a sync() call in the C bindings, 
>> and I assume that the syncronous vs. asyncronous methods have more to do 
>> with threading than 'sync' in the ZK API sense.
>> 
>> How does one invoke sync() from the C API?
>> 
>> On Aug 30, 2011, at 1:18 PM, Patrick Hunt wrote:
>> 
>>> All reads.
>>> 
>>> On Tue, Aug 30, 2011 at 10:12 AM, Jordan Zimmerman
>>> <[email protected]> wrote:
>>>> Thanks - if I understand correctly, this only applies to reads. Is that
>>>> reads on data only (getData) or both data and a list of a Znode's children
>>>> (getChildren)?
>>>> 
>>>> On 8/30/11 10:07 AM, "Patrick Hunt" <[email protected]> wrote:
>>>> 
>>>>> See this section of the programmers guide:
>>>>> http://zookeeper.apache.org/doc/r3.3.3/zookeeperProgrammers.html#ch_zkGuar
>>>>> antees
>>>>> 
>>>>> specifically the section "Simultaneously Consistent Cross-Client Views"
>>>>> 
>>>>> Patrick
>>>>> 
>>>>> On Tue, Aug 30, 2011 at 9:52 AM, Jordan Zimmerman
>>>>> <[email protected]> wrote:
>>>>>> When/why does sync() need to be called? I've searched the archive and
>>>>>> the
>>>>>> docs are non-existent. Any examples would be appreciated.
>>>>>> 
>>>>>> -JZ
>>>>>> 
>>>>>> 
>>>>> 
>>>> 
>>>> 
>> 
>> --
>> [email protected] (>^-^)>
>> 
>> 
>> 
>> 
>> 

--
[email protected] l^o






Reply via email to