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
ecee3c71
Commit
ecee3c71
authored
Oct 28, 2017
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix sign mismatch warnings
parent
769f0603
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
storage/innobase/dict/dict0mem.cc
storage/innobase/dict/dict0mem.cc
+9
-9
No files found.
storage/innobase/dict/dict0mem.cc
View file @
ecee3c71
...
...
@@ -1228,9 +1228,9 @@ void dict_table_t::instant_add_column(const dict_table_t& table)
for
(
ulint
n
=
v
.
num_base
;
n
--
;
)
{
dict_col_t
*&
base
=
v
.
base_col
[
n
];
if
(
!
base
->
is_virtual
())
{
ptrdiff_t
n
=
base
-
old_cols
;
DBUG_ASSERT
(
n
>=
0
);
DBUG_ASSERT
(
n
<
old_n_cols
-
DATA_N_SYS_COLS
);
DBUG_ASSERT
(
base
>=
old_cols
)
;
size_t
n
=
size_t
(
base
-
old_cols
);
DBUG_ASSERT
(
n
+
DATA_N_SYS_COLS
<
old_n_cols
);
base
=
&
cols
[
n
];
}
}
...
...
@@ -1247,13 +1247,13 @@ void dict_table_t::instant_add_column(const dict_table_t& table)
||
field
.
col
>=
old_cols_end
)
{
DBUG_ASSERT
(
field
.
col
->
is_virtual
());
}
else
{
ptrdiff_t
n
=
field
.
col
-
old_cols
;
/* Secondary indexes may contain user
columns and DB_ROW_ID (if there is
GEN_CLUST_INDEX instead of PRIMARY KEY),
but not DB_TRX_ID,DB_ROLL_PTR. */
DBUG_ASSERT
(
n
>=
0
);
DBUG_ASSERT
(
n
<=
old_n_cols
-
DATA_N_SYS_COLS
);
DBUG_ASSERT
(
field
.
col
>=
old_cols
);
size_t
n
=
size_t
(
field
.
col
-
old_cols
);
DBUG_ASSERT
(
n
+
DATA_N_SYS_COLS
<=
old_n_cols
);
if
(
n
+
DATA_N_SYS_COLS
>=
old_n_cols
)
{
/* Replace DB_ROW_ID */
n
+=
n_add
;
...
...
@@ -1326,10 +1326,10 @@ dict_table_t::rollback_instant(
||
field
.
col
>=
new_cols_end
)
{
DBUG_ASSERT
(
field
.
col
->
is_virtual
());
}
else
{
ptrdiff_t
n
=
field
.
col
-
new_cols
;
DBUG_ASSERT
(
n
>=
0
);
DBUG_ASSERT
(
field
.
col
>=
new_cols
)
;
size_t
n
=
size_t
(
field
.
col
-
new_cols
);
DBUG_ASSERT
(
n
<=
n_cols
);
if
(
n
>=
n_cols
-
DATA_N_SYS_COLS
)
{
if
(
n
+
DATA_N_SYS_COLS
>=
n_cols
)
{
n
-=
n_remove
;
}
field
.
col
=
&
cols
[
n
];
...
...
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