[Openais] latest logsys patch
Steven Dake
sdake at redhat.com
Sat Sep 8 23:48:59 PDT 2007
merged to trunk
On Tue, 2007-06-19 at 11:19 +0100, Patrick Caulfield wrote:
> Steven Dake wrote:
> > Folks,
> >
> > This is the latest logsys patch with some changes to deal with Patrick's
> > comments and also a man page giving an overview of how to use logsys.
> >
> > Patrick,
> > would you try this patch out with cman?
> >
>
> Three things I needed to to to make this work
>
> 1. I still need to use logsys_mkpri() in buffered_log_printf() to make my
> buffered log entries appear when it is flushed.
>
> 2. LOG_MODE_FLUSH_AFTER_CONFIG is removed from logsys_mode before calling
> logsys_buffer_flush() which stops it doing anything at all! As
> logsys_buffer_flush() does that job itself, it's redundant to put it into
> logsys_config_mode_set() I think.
>
> 3. The logsys_flush() call at the end of logsys_buffer_flush() deadlocks in
> pthread_cond_wait(). I just commented the above call out but I'm not sure that's
> the right thing to do
>
> See patch attached
>
More information about the Openais
mailing list