~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/innobase/log/log0log.c

  • Committer: Brian Aker
  • Date: 2009-03-17 04:26:36 UTC
  • mfrom: (933.1.4 innodb-plugin-merge)
  • Revision ID: brian@tangent.org-20090317042636-oyd238h2u2bqhfy1
Merging new Innodb

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*****************************************************************************
 
2
 
 
3
Copyright (c) 1995, 2009, Innobase Oy. All Rights Reserved.
 
4
 
 
5
This program is free software; you can redistribute it and/or modify it under
 
6
the terms of the GNU General Public License as published by the Free Software
 
7
Foundation; version 2 of the License.
 
8
 
 
9
This program is distributed in the hope that it will be useful, but WITHOUT
 
10
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 
11
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
 
12
 
 
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., 59 Temple
 
15
Place, Suite 330, Boston, MA 02111-1307 USA
 
16
 
 
17
*****************************************************************************/
 
18
 
1
19
/******************************************************
2
20
Database log
3
21
 
4
 
(c) 1995-1997 Innobase Oy
5
 
 
6
22
Created 12/9/1995 Heikki Tuuri
7
23
*******************************************************/
8
24
 
742
758
        ut_a(LOG_BUFFER_SIZE >= 16 * OS_FILE_LOG_BLOCK_SIZE);
743
759
        ut_a(LOG_BUFFER_SIZE >= 4 * UNIV_PAGE_SIZE);
744
760
 
745
 
        buf = ut_malloc(LOG_BUFFER_SIZE + OS_FILE_LOG_BLOCK_SIZE);
 
761
        buf = mem_alloc(LOG_BUFFER_SIZE + OS_FILE_LOG_BLOCK_SIZE);
746
762
        log_sys->buf = ut_align(buf, OS_FILE_LOG_BLOCK_SIZE);
747
763
 
748
764
        log_sys->buf_size = LOG_BUFFER_SIZE;
1785
1801
        }
1786
1802
}
1787
1803
 
 
1804
#ifdef UNIV_HOTBACKUP
1788
1805
/**********************************************************
1789
1806
Writes info to a buffer of a log group when log files are created in
1790
1807
backup restoration. */
1836
1853
        allocated size in the tablespace, but unfortunately we do not
1837
1854
        know it here */
1838
1855
}
 
1856
#endif /* UNIV_HOTBACKUP */
1839
1857
 
1840
1858
/**********************************************************
1841
1859
Reads a checkpoint info from a log group header to log_sys->checkpoint_buf. */