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
9e28fa23
Commit
9e28fa23
authored
Dec 02, 2011
by
Michael Widenius
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
3411e31d
907f246c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
3 deletions
+12
-3
mysql-test/suite/maria/r/maria-autozerofill.result
mysql-test/suite/maria/r/maria-autozerofill.result
+1
-2
storage/maria/ha_maria.cc
storage/maria/ha_maria.cc
+4
-0
storage/maria/ma_delete.c
storage/maria/ma_delete.c
+1
-0
storage/maria/ma_locking.c
storage/maria/ma_locking.c
+1
-1
storage/maria/ma_open.c
storage/maria/ma_open.c
+5
-0
No files found.
mysql-test/suite/maria/r/maria-autozerofill.result
View file @
9e28fa23
...
@@ -13,8 +13,7 @@ a
...
@@ -13,8 +13,7 @@ a
Warnings:
Warnings:
Error 1194 t1' is marked as crashed and should be repaired
Error 1194 t1' is marked as crashed and should be repaired
flush table t1;
flush table t1;
Status: changed,sorted index pages,zerofilled,movable
Status: changed,sorted index pages,zerofilled
create_rename_lsn has magic value
insert into t1 values(2);
insert into t1 values(2);
flush table t1;
flush table t1;
create_rename_lsn has non-magic value
create_rename_lsn has non-magic value
...
...
storage/maria/ha_maria.cc
View file @
9e28fa23
...
@@ -1425,8 +1425,12 @@ int ha_maria::zerofill(THD * thd, HA_CHECK_OPT *check_opt)
...
@@ -1425,8 +1425,12 @@ int ha_maria::zerofill(THD * thd, HA_CHECK_OPT *check_opt)
if
(
!
error
)
if
(
!
error
)
{
{
TrID
create_trid
=
trnman_get_min_safe_trid
();
pthread_mutex_lock
(
&
share
->
intern_lock
);
pthread_mutex_lock
(
&
share
->
intern_lock
);
share
->
state
.
changed
|=
STATE_NOT_MOVABLE
;
maria_update_state_info
(
&
param
,
file
,
UPDATE_TIME
|
UPDATE_OPEN_COUNT
);
maria_update_state_info
(
&
param
,
file
,
UPDATE_TIME
|
UPDATE_OPEN_COUNT
);
_ma_update_state_lsns_sub
(
share
,
LSN_IMPOSSIBLE
,
create_trid
,
TRUE
,
TRUE
);
pthread_mutex_unlock
(
&
share
->
intern_lock
);
pthread_mutex_unlock
(
&
share
->
intern_lock
);
}
}
return
error
;
return
error
;
...
...
storage/maria/ma_delete.c
View file @
9e28fa23
...
@@ -247,6 +247,7 @@ my_bool _ma_ck_real_delete(register MARIA_HA *info, MARIA_KEY *key,
...
@@ -247,6 +247,7 @@ my_bool _ma_ck_real_delete(register MARIA_HA *info, MARIA_KEY *key,
if
(
page
.
size
<=
page
.
node
+
share
->
keypage_header
+
1
)
if
(
page
.
size
<=
page
.
node
+
share
->
keypage_header
+
1
)
{
{
DBUG_ASSERT
(
page
.
size
==
page
.
node
+
share
->
keypage_header
);
if
(
page
.
node
)
if
(
page
.
node
)
*
root
=
_ma_kpos
(
page
.
node
,
root_buff
+
share
->
keypage_header
+
*
root
=
_ma_kpos
(
page
.
node
,
root_buff
+
share
->
keypage_header
+
page
.
node
);
page
.
node
);
...
...
storage/maria/ma_locking.c
View file @
9e28fa23
...
@@ -398,7 +398,7 @@ int _ma_mark_file_changed(register MARIA_SHARE *share)
...
@@ -398,7 +398,7 @@ int _ma_mark_file_changed(register MARIA_SHARE *share)
/*
/*
For transactional tables, the table is marked changed when the first page
For transactional tables, the table is marked changed when the first page
is written. Here we just mark the state to be updated so that caller
is written. Here we just mark the state to be updated so that caller
can do 'ana
yl
ze table' and find that is has changed before any pages
can do 'ana
ly
ze table' and find that is has changed before any pages
are written.
are written.
*/
*/
if
(
!
test_all_bits
(
share
->
state
.
changed
,
if
(
!
test_all_bits
(
share
->
state
.
changed
,
...
...
storage/maria/ma_open.c
View file @
9e28fa23
...
@@ -748,6 +748,11 @@ MARIA_HA *maria_open(const char *name, int mode, uint open_flags)
...
@@ -748,6 +748,11 @@ MARIA_HA *maria_open(const char *name, int mode, uint open_flags)
HA_ERR_CRASHED_ON_REPAIR
:
HA_ERR_CRASHED_ON_USAGE
);
HA_ERR_CRASHED_ON_REPAIR
:
HA_ERR_CRASHED_ON_USAGE
);
goto
err
;
goto
err
;
}
}
else
{
/* create_rename_lsn != LSN_NEEDS_NEW_STATE_LSNS */
share
->
state
.
changed
|=
STATE_NOT_MOVABLE
;
}
}
}
else
else
share
->
page_type
=
PAGECACHE_PLAIN_PAGE
;
share
->
page_type
=
PAGECACHE_PLAIN_PAGE
;
...
...
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