Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
488cf720
Commit
488cf720
authored
Dec 17, 2007
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
maria_page_checksum variable
parent
b621aecc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
4 deletions
+11
-4
include/maria.h
include/maria.h
+2
-2
mysql-test/r/maria.result
mysql-test/r/maria.result
+1
-0
storage/maria/ha_maria.cc
storage/maria/ha_maria.cc
+7
-1
storage/maria/ma_static.c
storage/maria/ma_static.c
+1
-1
No files found.
include/maria.h
View file @
488cf720
...
...
@@ -14,7 +14,7 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
/* This file should be included when using maria
_funk
tions */
/* This file should be included when using maria
func
tions */
#ifndef _maria_h
#define _maria_h
...
...
@@ -250,7 +250,7 @@ typedef struct st_maria_columndef /* column information */
extern
ulong
maria_block_size
,
maria_checkpoint_frequency
;
extern
ulong
maria_concurrent_insert
;
extern
my_bool
maria_flush
,
maria_single_user
;
extern
my_bool
maria_flush
,
maria_single_user
,
maria_page_checksums
;
extern
my_bool
maria_delay_key_write
;
extern
my_off_t
maria_max_temp_length
;
extern
ulong
maria_bulk_insert_tree_size
,
maria_data_pointer_size
;
...
...
mysql-test/r/maria.result
View file @
488cf720
...
...
@@ -2052,6 +2052,7 @@ maria_checkpoint_interval 30
maria_log_file_size 4294959104
maria_log_purge_type immediate
maria_max_sort_file_size 9223372036853727232
maria_page_checksum ON
maria_pagecache_age_threshold 300
maria_pagecache_buffer_size 8384512
maria_pagecache_division_limit 100
...
...
storage/maria/ha_maria.cc
View file @
488cf720
...
...
@@ -124,6 +124,10 @@ static MYSQL_SYSVAR_ULONG(checkpoint_interval, checkpoint_interval,
" 0 means 'no automatic checkpoints'."
,
NULL
,
update_checkpoint_interval
,
30
,
0
,
UINT_MAX
,
1
);
static
MYSQL_SYSVAR_BOOL
(
page_checksum
,
maria_page_checksums
,
0
,
"Maintain page checksums (can be overridden per table "
"with PAGE_CHECKSUM clause in CREATE TABLE)"
,
0
,
0
,
1
);
static
MYSQL_SYSVAR_ULONG
(
log_file_size
,
log_file_size
,
PLUGIN_VAR_RQCMDARG
,
"Limit for transaction log size"
,
...
...
@@ -2253,7 +2257,8 @@ int ha_maria::create(const char *name, register TABLE *table_arg,
create_flags
|=
HA_CREATE_CHECKSUM
;
if
(
options
&
HA_OPTION_DELAY_KEY_WRITE
)
create_flags
|=
HA_CREATE_DELAY_KEY_WRITE
;
if
(
ha_create_info
->
page_checksum
!=
HA_CHOICE_NO
)
if
((
ha_create_info
->
page_checksum
==
HA_CHOICE_UNDEF
&&
maria_page_checksums
)
||
ha_create_info
->
page_checksum
==
HA_CHOICE_YES
)
create_flags
|=
HA_CREATE_PAGE_CHECKSUM
;
/* TODO: Check that the following fn_format is really needed */
...
...
@@ -2658,6 +2663,7 @@ my_bool ha_maria::register_query_cache_table(THD *thd, char *table_name,
static
struct
st_mysql_sys_var
*
system_variables
[]
=
{
MYSQL_SYSVAR
(
block_size
),
MYSQL_SYSVAR
(
checkpoint_interval
),
MYSQL_SYSVAR
(
page_checksum
),
MYSQL_SYSVAR
(
log_file_size
),
MYSQL_SYSVAR
(
log_purge_type
),
MYSQL_SYSVAR
(
max_sort_file_size
),
...
...
storage/maria/ma_static.c
View file @
488cf720
...
...
@@ -33,7 +33,7 @@ uchar maria_uuid[MY_UUID_SIZE];
uint
maria_quick_table_bits
=
9
;
ulong
maria_block_size
=
MARIA_KEY_BLOCK_LENGTH
;
my_bool
maria_flush
=
0
,
maria_single_user
=
0
;
my_bool
maria_delay_key_write
=
0
;
my_bool
maria_delay_key_write
=
0
,
maria_page_checksums
=
1
;
#if defined(THREAD) && !defined(DONT_USE_RW_LOCKS)
ulong
maria_concurrent_insert
=
2
;
#else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment