[Sheepdog] [PATCH] store, simple: refactor open function
MORITA Kazutaka
morita.kazutaka at lab.ntt.co.jp
Mon Jan 23 10:28:02 CET 2012
At Fri, 20 Jan 2012 16:23:04 +0800,
Liu Yuan wrote:
>
> On 01/20/2012 04:15 PM, Liu Yuan wrote:
>
> > From: Liu Yuan <tailai.ly at taobao.com>
> >
> > This is necessary when adding tracer to sheep. After the refactoring,
> > the tracer works fine as expected. Without, there will be a segfault.
> > ---
> > Hi Kazum,
> >
> > I think now tracer would works well on your box. I have tested it on debian squeeze.
> >
>
> I have added this patch onto trace branch.
I've tried the latest trace branch, but it still doesn't work if I add
-O0 option for GCC to disable optimization:
$ ./sheep/sheep /store/0 -f -d
sheep: init_store(2004) no store found
sheep: create_cluster(1385) use corosync cluster driver as default
sheep: create_cluster(1405) zone id = 17712138
sheep: read_epoch(2017) failed to read epoch 0
sheep: send_join_request(817) ip: 10.68.14.1, port: 7000
and then, sheep hangs up on my debian squeeze box.
If I enable optimization, I've not encountered any problems :)
Thanks,
Kazutaka
More information about the sheepdog
mailing list