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
4b2f5cce
Commit
4b2f5cce
authored
Jul 25, 2002
by
heikki@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
row0vers.c:
Add diagnostic code to track a probable table corruption reported by a user
parent
9171b5e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
innobase/row/row0vers.c
innobase/row/row0vers.c
+21
-1
No files found.
innobase/row/row0vers.c
View file @
4b2f5cce
...
...
@@ -58,6 +58,7 @@ row_vers_impl_x_locked_off_kernel(
ibool
rec_del
;
ulint
err
;
mtr_t
mtr
;
char
err_buf
[
1000
];
ut_ad
(
mutex_own
(
&
kernel_mutex
));
ut_ad
(
!
rw_lock_own
(
&
(
purge_sys
->
latch
),
RW_LOCK_SHARED
));
...
...
@@ -74,7 +75,26 @@ row_vers_impl_x_locked_off_kernel(
clust_rec
=
row_get_clust_rec
(
BTR_SEARCH_LEAF
,
rec
,
index
,
&
clust_index
,
&
mtr
);
ut_a
(
clust_rec
);
if
(
!
clust_rec
)
{
rec_sprintf
(
err_buf
,
900
,
rec
);
ut_print_timestamp
(
stderr
);
fprintf
(
stderr
,
" InnoDB: Error: cannot find the clustered index record
\n
"
"InnoDB: for a secondary index record in table %s index %s.
\n
"
"InnoDB: Secondary index record %s.
\n
"
"InnoDB: The table is probably corrupt. Please run CHECK TABLE on it.
\n
"
"InnoDB: You can try to repair the table by dump + drop + reimport.
\n
"
"InnoDB: Send a detailed bug report to mysql@lists.mysql.com.
\n
"
,
index
->
table_name
,
index
->
name
,
err_buf
);
mutex_enter
(
&
kernel_mutex
);
mtr_commit
(
&
mtr
);
/* We assume there is no lock on the record, though this
is not certain because the table is apparently corrupt */
return
(
NULL
);
}
trx_id
=
row_get_rec_trx_id
(
clust_rec
,
clust_index
);
...
...
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