List:Internals« Previous MessageNext Message »
From:Mr. Left Date:October 27 2012 5:33am
Subject:Is it a lapsus calami in init_io_cache?
View as plain text  
Hi, all
I am reading the source code of mysql 5.6.6-m9, and i found the code below in
function:init_io_cache

/* Clear mutex so that safe_mutex will notice that it's not initialized */   
memset(&info->append_buffer_lock, 0, sizeof(info));

I want to know why use sizeof(info) instead of sizeof(info->append_buffer_lock) ?

Best Regards!
Thread
Is it a lapsus calami in init_io_cache?Mr. Left27 Oct
  • Re: Is it a lapsus calami in init_io_cache?Jon Olav Hauglid31 Oct
    • Re: Is it a lapsus calami in init_io_cache?Shaukat Mahmood Ahmad1 Nov