[sheepdog] [PATCH 5/5] logger: don't show a thread index for an ordered work queue

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Tue Jul 3 04:31:01 CEST 2012


At Tue, 3 Jul 2012 09:29:01 +0800,
Yunkai Zhang wrote:
> 
> On Tue, Jul 3, 2012 at 2:32 AM, MORITA Kazutaka
> <morita.kazutaka at lab.ntt.co.jp> wrote:
> > --- a/sheep/work.c
> > +++ b/sheep/work.c
> > @@ -61,7 +61,7 @@ static void *run_short_thread(void * arg)
> >  {
> >         struct short_work *sw = arg;
> >         eventfd_t value = 1;
> > -       static uint64_t idx = 0;
> > +       static uint64_t idx = 1;
> 
> Why initialize idx with 1?

Ah, yes.  This change is not needed.

Thanks,

Kazutaka



More information about the sheepdog mailing list