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
8f01a172
Commit
8f01a172
authored
Apr 01, 2019
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.2 into 10.3
parents
0ffea01d
f055da9b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
5 deletions
+19
-5
storage/innobase/handler/handler0alter.cc
storage/innobase/handler/handler0alter.cc
+17
-5
storage/rocksdb/mysql-test/rocksdb_stress/t/disabled.def
storage/rocksdb/mysql-test/rocksdb_stress/t/disabled.def
+2
-0
No files found.
storage/innobase/handler/handler0alter.cc
View file @
8f01a172
...
...
@@ -3280,10 +3280,17 @@ innobase_build_col_map(
&
INNOBASE_DEFAULTS
));
DBUG_ASSERT
(
!
defaults
||
dtuple_get_n_fields
(
defaults
)
==
dict_table_get_n_cols
(
new_table
));
DBUG_ASSERT
(
table
->
s
->
stored_fields
>
0
);
size_t
old_n_v_cols
=
old_n_v_cols
=
table
->
s
->
fields
-
table
->
s
->
stored_fields
;
DBUG_ASSERT
(
old_n_v_cols
==
old_table
->
n_v_cols
||
table
->
s
->
frm_version
<
FRM_VER_EXPRESSSIONS
);
DBUG_ASSERT
(
!
old_n_v_cols
||
table
->
s
->
virtual_fields
);
ulint
*
col_map
=
static_cast
<
ulint
*>
(
mem_heap_alloc
(
heap
,
unsigned
(
old_table
->
n_cols
+
old_table
->
n_v_cols
)
heap
,
(
size_t
(
old_table
->
n_cols
)
+
old_
n_v_cols
)
*
sizeof
*
col_map
));
List_iterator_fast
<
Create_field
>
cf_it
(
...
...
@@ -3297,10 +3304,12 @@ innobase_build_col_map(
col_map
[
old_i
]
=
ULINT_UNDEFINED
;
}
for
(
uint
old_i
=
0
;
old_i
<
old_
table
->
n_v_cols
;
old_i
++
)
{
for
(
uint
old_i
=
0
;
old_i
<
old_n_v_cols
;
old_i
++
)
{
col_map
[
old_i
+
old_table
->
n_cols
]
=
ULINT_UNDEFINED
;
}
const
bool
omits_virtual
=
ha_innobase
::
omits_virtual_cols
(
*
table
->
s
);
while
(
const
Create_field
*
new_field
=
cf_it
++
)
{
bool
is_v
=
!
new_field
->
stored_in_db
();
ulint
num_old_v
=
0
;
...
...
@@ -3309,8 +3318,11 @@ innobase_build_col_map(
const
Field
*
field
=
table
->
field
[
old_i
];
if
(
!
field
->
stored_in_db
())
{
if
(
is_v
&&
new_field
->
field
==
field
)
{
col_map
[
old_table
->
n_cols
+
num_v
]
if
(
!
omits_virtual
)
{
col_map
[
old_table
->
n_cols
+
num_v
]
=
num_old_v
;
}
num_old_v
++
;
goto
found_col
;
}
...
...
@@ -3355,7 +3367,7 @@ innobase_build_col_map(
DBUG_ASSERT
(
i
==
altered_table
->
s
->
fields
-
num_v
);
i
=
table
->
s
->
fields
-
old_
table
->
n_v_cols
;
i
=
table
->
s
->
fields
-
old_n_v_cols
;
/* Add the InnoDB hidden FTS_DOC_ID column, if any. */
if
(
i
+
DATA_N_SYS_COLS
<
old_table
->
n_cols
)
{
...
...
storage/rocksdb/mysql-test/rocksdb_stress/t/disabled.def
0 → 100644
View file @
8f01a172
rocksdb_stress_crash: Client scipt seems to hang on terminal input in MariaDB
rocksdb_stress: Client scipt seems to hang on terminal input in MariaDB
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