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
deaf220c
Commit
deaf220c
authored
Mar 30, 2012
by
Michael Widenius
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge
parents
fb3eb4a7
9b8542a4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
1 deletion
+25
-1
mysql-test/suite/maria/r/maria-autozerofill.result
mysql-test/suite/maria/r/maria-autozerofill.result
+17
-0
mysql-test/suite/maria/t/maria-autozerofill.test
mysql-test/suite/maria/t/maria-autozerofill.test
+7
-0
storage/maria/ha_maria.cc
storage/maria/ha_maria.cc
+1
-1
No files found.
mysql-test/suite/maria/r/maria-autozerofill.result
View file @
deaf220c
...
@@ -10,6 +10,8 @@ create table t3 (a int) engine=aria;
...
@@ -10,6 +10,8 @@ create table t3 (a int) engine=aria;
INSERT INTO t3 VALUES (1),(2);
INSERT INTO t3 VALUES (1),(2);
create table t4 (a int) engine=aria;
create table t4 (a int) engine=aria;
INSERT INTO t4 VALUES (1),(2);
INSERT INTO t4 VALUES (1),(2);
create table t5 (a int) engine=maria;
INSERT INTO t5 VALUES (1),(2);
flush tables;
flush tables;
create_rename_lsn has non-magic value
create_rename_lsn has non-magic value
* shut down mysqld, removed logs, restarted it
* shut down mysqld, removed logs, restarted it
...
@@ -34,6 +36,9 @@ mysqltest.t2 check error Corrupt
...
@@ -34,6 +36,9 @@ mysqltest.t2 check error Corrupt
repair table t2;
repair table t2;
Table Op Msg_type Msg_text
Table Op Msg_type Msg_text
mysqltest.t2 repair status OK
mysqltest.t2 repair status OK
check table t2;
Table Op Msg_type Msg_text
mysqltest.t2 check status OK
optimize table t3;
optimize table t3;
Table Op Msg_type Msg_text
Table Op Msg_type Msg_text
mysqltest.t3 optimize Note Zerofilling moved table ./mysqltest/t3
mysqltest.t3 optimize Note Zerofilling moved table ./mysqltest/t3
...
@@ -42,4 +47,16 @@ analyze table t4;
...
@@ -42,4 +47,16 @@ analyze table t4;
Table Op Msg_type Msg_text
Table Op Msg_type Msg_text
mysqltest.t4 analyze Note Zerofilling moved table ./mysqltest/t4
mysqltest.t4 analyze Note Zerofilling moved table ./mysqltest/t4
mysqltest.t4 analyze status OK
mysqltest.t4 analyze status OK
repair table t5;
Table Op Msg_type Msg_text
mysqltest.t5 repair status OK
check table t5;
Table Op Msg_type Msg_text
mysqltest.t5 check status OK
repair table t5;
Table Op Msg_type Msg_text
mysqltest.t5 repair status OK
check table t5;
Table Op Msg_type Msg_text
mysqltest.t5 check status OK
drop database mysqltest;
drop database mysqltest;
mysql-test/suite/maria/t/maria-autozerofill.test
View file @
deaf220c
...
@@ -31,6 +31,8 @@ create table t3 (a int) engine=aria;
...
@@ -31,6 +31,8 @@ create table t3 (a int) engine=aria;
INSERT
INTO
t3
VALUES
(
1
),(
2
);
INSERT
INTO
t3
VALUES
(
1
),(
2
);
create
table
t4
(
a
int
)
engine
=
aria
;
create
table
t4
(
a
int
)
engine
=
aria
;
INSERT
INTO
t4
VALUES
(
1
),(
2
);
INSERT
INTO
t4
VALUES
(
1
),(
2
);
create
table
t5
(
a
int
)
engine
=
maria
;
INSERT
INTO
t5
VALUES
(
1
),(
2
);
flush
tables
;
flush
tables
;
# Check that table is not zerofilled, not movable
# Check that table is not zerofilled, not movable
...
@@ -96,9 +98,14 @@ EOF
...
@@ -96,9 +98,14 @@ EOF
check
table
t2
;
check
table
t2
;
check
table
t2
;
check
table
t2
;
repair
table
t2
;
repair
table
t2
;
check
table
t2
;
replace_result
\\
/
;
replace_result
\\
/
;
optimize
table
t3
;
optimize
table
t3
;
replace_result
\\
/
;
replace_result
\\
/
;
analyze
table
t4
;
analyze
table
t4
;
repair
table
t5
;
check
table
t5
;
repair
table
t5
;
check
table
t5
;
drop
database
mysqltest
;
drop
database
mysqltest
;
storage/maria/ha_maria.cc
View file @
deaf220c
...
@@ -1616,7 +1616,7 @@ int ha_maria::repair(THD *thd, HA_CHECK *param, bool do_optimize)
...
@@ -1616,7 +1616,7 @@ int ha_maria::repair(THD *thd, HA_CHECK *param, bool do_optimize)
{
{
DBUG_PRINT
(
"info"
,
(
"Reseting crashed state"
));
DBUG_PRINT
(
"info"
,
(
"Reseting crashed state"
));
share
->
state
.
changed
&=
~
(
STATE_CHANGED
|
STATE_CRASHED_FLAGS
|
share
->
state
.
changed
&=
~
(
STATE_CHANGED
|
STATE_CRASHED_FLAGS
|
STATE_IN_REPAIR
);
STATE_IN_REPAIR
|
STATE_MOVED
);
file
->
update
|=
HA_STATE_CHANGED
|
HA_STATE_ROW_CHANGED
;
file
->
update
|=
HA_STATE_CHANGED
|
HA_STATE_ROW_CHANGED
;
}
}
/*
/*
...
...
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