~fallenpegasus/drizzle/logcsv

« back to all changes in this revision

Viewing changes to plugin/innobase/ibuf/ibuf0ibuf.c

  • Committer: lbieber at stabletransit
  • Date: 2010-10-13 16:20:08 UTC
  • mfrom: (1843.1.3 build)
  • Revision ID: lbieber@drizzle-build-n02.wc1.dfw1.stabletransit.com-20101013162008-qi2e6k5yvfm16964
Merge Stewart - update innobase plugin to be based on innodb_plugin 1.0.6
Merge Monty - more valgrind cleanup
Merge Monty - Moved libdrizzle api listings from doxygen to sphinx

Show diffs side-by-side

added added

removed removed

Lines of Context:
390
390
#endif
391
391
 
392
392
/******************************************************************//**
 
393
Closes insert buffer and frees the data structures. */
 
394
UNIV_INTERN
 
395
void
 
396
ibuf_close(void)
 
397
/*============*/
 
398
{
 
399
        mutex_free(&ibuf_pessimistic_insert_mutex);
 
400
        memset(&ibuf_pessimistic_insert_mutex,
 
401
               0x0, sizeof(ibuf_pessimistic_insert_mutex));
 
402
 
 
403
        mutex_free(&ibuf_mutex);
 
404
        memset(&ibuf_mutex, 0x0, sizeof(ibuf_mutex));
 
405
 
 
406
        mutex_free(&ibuf_bitmap_mutex);
 
407
        memset(&ibuf_bitmap_mutex, 0x0, sizeof(ibuf_mutex));
 
408
 
 
409
        mem_free(ibuf);
 
410
        ibuf = NULL;
 
411
}
 
412
 
 
413
/******************************************************************//**
393
414
Updates the size information of the ibuf, assuming the segment size has not
394
415
changed. */
395
416
static