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
te 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 wrote: > we'd like to store some metada

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

2010-03-30 Thread zd.wbh
ly 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 wrote: > Thanks for your quick reply,

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

2010-03-31 Thread zd.wbh
elay 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 wrote: > It is in the situ

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

2010-04-07 Thread zd.wbh
t 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
nning 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

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 bu

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

2010-04-07 Thread zd.wbh
help to get to the bottom of the issue. Patrick On 04/07/2010 06:36 PM, zd.wbh wrote: > likely to be the latest version. I need the sync api but zookeeper_st only > provides async interface, do i need any additional libs? I've already > installed the pthread stubs

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

2010-04-07 Thread zd.wbh
2010-04-08 zd.wbh 发件人: "zd.wbh" 发送时间: 2010-04-08 14:32 主 题: Re: Re: how to build an mt version of shared lib for zookeeper under cygwin? 收件人: "zookeeper-user" $ ls /usr/lib/*pth* /usr/lib/libpthread.a checking for pthread_mutex_lock in -lpthread... yes Attach is