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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
2ec45a26
Commit
2ec45a26
authored
Jun 22, 2010
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dict_load_column_low(): Initialize pos. Improve documentation.
Approved by Jimmy Yang.
parent
d8605104
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
storage/innobase/dict/dict0load.c
storage/innobase/dict/dict0load.c
+8
-5
storage/innobase/include/dict0load.h
storage/innobase/include/dict0load.h
+2
-1
No files found.
storage/innobase/dict/dict0load.c
View file @
2ec45a26
...
...
@@ -782,12 +782,13 @@ const char*
dict_load_column_low
(
/*=================*/
dict_table_t
*
table
,
/*!< in/out: table, could be NULL
if we just po
l
ulate a dict_column_t
if we just po
p
ulate a dict_column_t
struct with information from
a SYS_COLUMNS record */
mem_heap_t
*
heap
,
/*!< in/out: memory heap
for temporary storage */
dict_col_t
*
column
,
/*!< out: dict_column_t to fill */
dict_col_t
*
column
,
/*!< out: dict_column_t to fill,
or NULL if table != NULL */
dulint
*
table_id
,
/*!< out: table id */
const
char
**
col_name
,
/*!< out: column name */
const
rec_t
*
rec
)
/*!< in: SYS_COLUMNS record */
...
...
@@ -800,6 +801,8 @@ dict_load_column_low(
ulint
col_len
;
ulint
pos
;
ut_ad
(
table
||
column
);
if
(
UNIV_UNLIKELY
(
rec_get_deleted_flag
(
rec
,
0
)))
{
return
(
"delete-marked record in SYS_COLUMNS"
);
}
...
...
@@ -827,9 +830,9 @@ err_len:
goto
err_len
;
}
if
(
!
table
)
{
pos
=
mach_read_from_4
(
field
);
}
else
if
(
UNIV_UNLIKELY
(
table
->
n_def
!=
mach_read_from_4
(
field
)))
{
if
(
UNIV_UNLIKELY
(
table
&&
table
->
n_def
!=
pos
))
{
return
(
"SYS_COLUMNS.POS mismatch"
);
}
...
...
storage/innobase/include/dict0load.h
View file @
2ec45a26
...
...
@@ -109,7 +109,8 @@ dict_load_column_low(
a SYS_COLUMNS record */
mem_heap_t
*
heap
,
/*!< in/out: memory heap
for temporary storage */
dict_col_t
*
column
,
/*!< out: dict_column_t to fill */
dict_col_t
*
column
,
/*!< out: dict_column_t to fill,
or NULL if table != NULL */
dulint
*
table_id
,
/*!< out: table id */
const
char
**
col_name
,
/*!< out: column name */
const
rec_t
*
rec
);
/*!< in: SYS_COLUMNS record */
...
...
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