~drizzle-trunk/drizzle/development

Viewing all changes in revision 1819.7.150.

Merge Revision revid:vasil.dimov@oracle.com-20100531152341-x2d4hma644icamh1 from MySQL InnoDB

Original revid:vasil.dimov@oracle.com-20100531152341-x2d4hma644icamh1

Original Authors: Vasil Dimov <vasil.dimov@oracle.com>
Original commit message:
Fix Bug #53947 InnoDB: Assertion failure in thread 4224 in file .\sync\sync0sync.c line 324

Destroy the rw-lock object before freeing the memory it is occupying.
If we do not do this, then the mutex that is contained in the rw-lock
object btr_search_latch_temp->mutex gets "freed" and subsequently
mutex_free() from sync_close() hits a mutex whose memory has been
freed and crashes.

Approved by:    Heikki (via IRC)
Discussed with: Calvin

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: