Re: Question about flushing log before exit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 22 Oct 2018, Victor Denisov wrote:
> Hi,
> 
> I'm working on bug: http://tracker.ceph.com/issues/24615.
> AFAIU the problem is that many functions
> in pick_address.c exit immediately after writing to log.
> Since writing to log is a relatively complex operation
> it may not complete before exiting.
> 
> I'm wondering if there is any practice to flush CephContext._log
> before exiting. I can't find it anywhere even though it looks like
> a reasonable routine.

See log/Log.cc's log_on_exit(), set_flush_on_exit(), and the caller in 
global/global_init.cc... and figure out why that's not triggering in your 
case.

sage



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux