mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
ea3ae3c470
storage/maria/Makefile.am: copyright storage/maria/ma_pagecache.c: copyright storage/maria/ma_pagecache.h: copyright storage/maria/ma_pagecaches.c: copyright storage/maria/ma_pagecrc.c: copyright storage/maria/unittest/Makefile.am: copyright storage/maria/unittest/lockman-t.c: copyright storage/maria/unittest/lockman1-t.c: copyright storage/maria/unittest/lockman2-t.c: copyright storage/maria/unittest/ma_control_file-t.c: copyright storage/maria/unittest/ma_loghandler_examples.c: copyright storage/maria/unittest/ma_maria_log_cleanup.c: copyright storage/maria/unittest/ma_pagecache_consist.c: copyright storage/maria/unittest/ma_pagecache_rwconsist.c: copyright storage/maria/unittest/ma_pagecache_single.c: copyright storage/maria/unittest/ma_test_loghandler-t.c: copyright storage/maria/unittest/ma_test_loghandler_first_lsn-t.c: copyright storage/maria/unittest/ma_test_loghandler_max_lsn-t.c: copyright storage/maria/unittest/ma_test_loghandler_multigroup-t.c: copyright storage/maria/unittest/ma_test_loghandler_multithread-t.c: copyright storage/maria/unittest/ma_test_loghandler_noflush-t.c: copyright storage/maria/unittest/ma_test_loghandler_nologs-t.c: copyright storage/maria/unittest/ma_test_loghandler_pagecache-t.c: copyright storage/maria/unittest/ma_test_loghandler_purge-t.c: copyright storage/maria/unittest/test_file.c: copyright storage/maria/unittest/test_file.h: copyright storage/maria/unittest/trnman-t.c: copyright
65 lines
2.6 KiB
C
65 lines
2.6 KiB
C
/* Copyright (C) 2006-2008 MySQL AB
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; version 2 of the License.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
|
|
|
#include "../maria_def.h"
|
|
|
|
static LOG_DESC INIT_LOGREC_FIXED_RECORD_0LSN_EXAMPLE=
|
|
{LOGRECTYPE_FIXEDLENGTH, 6, 6, NULL, NULL, NULL, 0,
|
|
"fixed0example", LOGREC_NOT_LAST_IN_GROUP, NULL, NULL};
|
|
|
|
static LOG_DESC INIT_LOGREC_VARIABLE_RECORD_0LSN_EXAMPLE=
|
|
{LOGRECTYPE_VARIABLE_LENGTH, 0, 9, NULL, NULL, NULL, 0,
|
|
"variable0example", LOGREC_NOT_LAST_IN_GROUP, NULL, NULL};
|
|
|
|
static LOG_DESC INIT_LOGREC_FIXED_RECORD_1LSN_EXAMPLE=
|
|
{LOGRECTYPE_PSEUDOFIXEDLENGTH, 7, 7, NULL, NULL, NULL, 1,
|
|
"fixed1example", LOGREC_NOT_LAST_IN_GROUP, NULL, NULL};
|
|
|
|
static LOG_DESC INIT_LOGREC_VARIABLE_RECORD_1LSN_EXAMPLE=
|
|
{LOGRECTYPE_VARIABLE_LENGTH, 0, 12, NULL, NULL, NULL, 1,
|
|
"variable1example", LOGREC_NOT_LAST_IN_GROUP, NULL, NULL};
|
|
|
|
static LOG_DESC INIT_LOGREC_FIXED_RECORD_2LSN_EXAMPLE=
|
|
{LOGRECTYPE_PSEUDOFIXEDLENGTH, 23, 23, NULL, NULL, NULL, 2,
|
|
"fixed2example", LOGREC_NOT_LAST_IN_GROUP, NULL, NULL};
|
|
|
|
static LOG_DESC INIT_LOGREC_VARIABLE_RECORD_2LSN_EXAMPLE=
|
|
{LOGRECTYPE_VARIABLE_LENGTH, 0, 19, NULL, NULL, NULL, 2,
|
|
"variable2example", LOGREC_NOT_LAST_IN_GROUP, NULL, NULL};
|
|
|
|
|
|
void translog_example_table_init()
|
|
{
|
|
int i;
|
|
log_record_type_descriptor[LOGREC_FIXED_RECORD_0LSN_EXAMPLE]=
|
|
INIT_LOGREC_FIXED_RECORD_0LSN_EXAMPLE;
|
|
log_record_type_descriptor[LOGREC_VARIABLE_RECORD_0LSN_EXAMPLE]=
|
|
INIT_LOGREC_VARIABLE_RECORD_0LSN_EXAMPLE;
|
|
log_record_type_descriptor[LOGREC_FIXED_RECORD_1LSN_EXAMPLE]=
|
|
INIT_LOGREC_FIXED_RECORD_1LSN_EXAMPLE;
|
|
log_record_type_descriptor[LOGREC_VARIABLE_RECORD_1LSN_EXAMPLE]=
|
|
INIT_LOGREC_VARIABLE_RECORD_1LSN_EXAMPLE;
|
|
log_record_type_descriptor[LOGREC_FIXED_RECORD_2LSN_EXAMPLE]=
|
|
INIT_LOGREC_FIXED_RECORD_2LSN_EXAMPLE;
|
|
log_record_type_descriptor[LOGREC_VARIABLE_RECORD_2LSN_EXAMPLE]=
|
|
INIT_LOGREC_VARIABLE_RECORD_2LSN_EXAMPLE;
|
|
for (i= LOGREC_VARIABLE_RECORD_2LSN_EXAMPLE + 1;
|
|
i < LOGREC_NUMBER_OF_TYPES;
|
|
i++)
|
|
log_record_type_descriptor[i].rclass= LOGRECTYPE_NOT_ALLOWED;
|
|
}
|
|
|
|
|
|
|