How to ensure trasaction create-and-update

2010-03-29 Thread zd.wbh
hi,all we'd like to store some metadata in zookeeper in our upcoming project, here is a special but common case: we need to create a new znode, in the mean while, update another znode data. These manipulation(a create and a update) need to be done as atom. We don't want to see a successful

Re: Re: How to ensure trasaction create-and-update

2010-03-29 Thread zd.wbh
generate a small number of garbage files (this number can be substantially decreased by careful use of try/finally) which might require a cleanup process to run occasionally to find unreferenced and old files. On Mon, Mar 29, 2010 at 6:54 PM, zd.wbh zd@163.com wrote: we'd like

Re: Re: Re: How to ensure trasaction create-and-update

2010-03-30 Thread zd.wbh
be in a single pair and the online status of a disk can be determined by checking the disk to see if it is in a pair and if that pair has state ONLINE. Can you move the ONLINE state to the DISK-PAIR? On Mon, Mar 29, 2010 at 7:24 PM, zd.wbh zd@163.com wrote: Thanks for your quick reply, Ted

Re: Re: Re: Re: How to ensure trasaction create-and-update

2010-03-31 Thread zd.wbh
a small delay after constructing the pair, then you can just rely on the copy in the disk structure and never refer to the version in the diskPair. The other transitions that you describe can easily be implemented on that same basis. On Tue, Mar 30, 2010 at 12:22 AM, zd.wbh zd@163.com wrote

how to build an mt version of shared lib for zookeeper under cygwin?

2010-04-07 Thread zd.wbh
or *** it was explicitly requested with -no-undefined, *** libtool will only create a static version of it. 2010-04-07 zd.wbh

Re: Re: how to build an mt version of shared lib for zookeeper under cygwin?

2010-04-07 Thread zd.wbh
cygwin 1.7 or 1.5? I believe there was a change btw versions of cygwin on how pthreads was supported. Patrick On 04/07/2010 03:08 AM, zd.wbh wrote: hi, all: Is it possible to build an mt version of zookeeper dll lib? I've tried, cygzookeeper_st-2.dll come out successfully

Re: Re: how to build an mt version of shared lib for zookeeper under cygwin?

2010-04-07 Thread zd.wbh
and zookeeper is the latest build too , zookeeper-3.3.0 2010-04-08 Will Are you running cygwin 1.7 or 1.5? I believe there was a change btw versions of cygwin on how pthreads was supported. Patrick On 04/07/2010 03:08 AM, zd.wbh wrote: hi, all: Is it possible to build an mt

Re: Re: Re: how to build an mt version of shared lib for zookeeper under cygwin?

2010-04-08 Thread zd.wbh
2010-04-08 zd.wbh 发件人: zd.wbhzd@163.com 发送时间: 2010-04-08 14:32 主 题: Re: Re: how to build an mt version of shared lib for zookeeper under cygwin? 收件人: zookeeper-userzookeeper-user@hadoop.apache.org $ ls /usr/lib/*pth* /usr/lib/libpthread.a checking for pthread_mutex_lock