~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Vijay Samuel
  • Date: 2010-09-10 21:03:37 UTC
  • mto: (1757.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1758.
  • Revision ID: vijay@vijay-20100910210337-rf7c2ymawtqj6tkv
Merge added utf 8 tamil test case suite and test case for creating a database in tamil.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
 
3
 
Copyright (c) 1994, 2010, Innobase Oy. All Rights Reserved.
 
3
Copyright (c) 1994, 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
11
11
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
12
 
13
13
You should have received a copy of the GNU General Public License along with
14
 
this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
15
 
St, Fifth Floor, Boston, MA 02110-1301 USA
 
14
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
 
15
Place, Suite 330, Boston, MA 02111-1307 USA
16
16
 
17
17
*****************************************************************************/
18
18
 
581
581
/*==============*/
582
582
        mem_heap_t*     heap)   /*!< in: heap */
583
583
{
 
584
        mem_block_t*    block;
584
585
        ulint           size    = 0;
585
586
 
586
587
        ut_ad(mem_heap_check(heap));
587
588
 
588
 
        size = heap->total_size;
589
 
 
 
589
        block = heap;
 
590
 
 
591
        while (block != NULL) {
 
592
 
 
593
                size += mem_block_get_len(block);
 
594
                block = UT_LIST_GET_NEXT(list, block);
 
595
        }
590
596
#ifndef UNIV_HOTBACKUP
591
597
        if (heap->free_block) {
592
598
                size += UNIV_PAGE_SIZE;