~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/include/log0log.ic

  • Committer: Andrew Hutchings
  • Date: 2010-11-09 13:38:01 UTC
  • mto: (1919.1.2 trunk)
  • mto: This revision was merged to the branch mainline in revision 1920.
  • Revision ID: andrew@linuxjedi.co.uk-20101109133801-byjzsao76346395x
Add FLUSH GLOBAL STATUS; command
Clears the global status variables for the server

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
 
3
 
Copyright (c) 1995, 2010, Innobase Oy. All Rights Reserved.
 
3
Copyright (c) 1995, 2009, Innobase Oy. All Rights Reserved.
4
4
 
5
5
This program is free software; you can redistribute it and/or modify it under
6
6
the terms of the GNU General Public License as published by the Free Software
314
314
        ulint           data_len;
315
315
#ifdef UNIV_LOG_LSN_DEBUG
316
316
        /* length of the LSN pseudo-record */
317
 
        ulint           lsn_len;
318
 
#endif /* UNIV_LOG_LSN_DEBUG */
319
 
 
320
 
        mutex_enter(&log_sys->mutex);
321
 
#ifdef UNIV_LOG_LSN_DEBUG
322
 
        lsn_len = 1
 
317
        ulint           lsn_len = 1
323
318
                + mach_get_compressed_size(log_sys->lsn >> 32)
324
319
                + mach_get_compressed_size(log_sys->lsn & 0xFFFFFFFFUL);
325
320
#endif /* UNIV_LOG_LSN_DEBUG */
326
321
 
 
322
        mutex_enter(&log_sys->mutex);
 
323
 
327
324
        data_len = len
328
325
#ifdef UNIV_LOG_LSN_DEBUG
329
326
                + lsn_len
433
430
log_free_check(void)
434
431
/*================*/
435
432
{
436
 
 
437
 
#ifdef UNIV_SYNC_DEBUG
438
 
        ut_ad(sync_thread_levels_empty_gen(TRUE));
439
 
#endif /* UNIV_SYNC_DEBUG */
 
433
        /* ut_ad(sync_thread_levels_empty()); */
440
434
 
441
435
        if (log_sys->check_flush_or_checkpoint) {
442
436