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
4d0e5218
Commit
4d0e5218
authored
Mar 13, 2015
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-7770: Online DDL progress output contains incorrectly printed index names
Index names were not formatted correctly.
parent
bb3115b2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
8 deletions
+26
-8
storage/innobase/row/row0merge.cc
storage/innobase/row/row0merge.cc
+13
-4
storage/xtradb/row/row0merge.cc
storage/xtradb/row/row0merge.cc
+13
-4
No files found.
storage/innobase/row/row0merge.cc
View file @
4d0e5218
...
...
@@ -3730,6 +3730,8 @@ wait_again:
DEBUG_FTS_SORT_PRINT
(
"FTS_SORT: Complete Insert
\n
"
);
#endif
}
else
{
char
buf
[
3
*
NAME_LEN
];
char
*
bufend
;
row_merge_dup_t
dup
=
{
sort_idx
,
table
,
col_map
,
0
};
...
...
@@ -3739,9 +3741,16 @@ wait_again:
(
total_static_cost
+
total_dynamic_cost
)
*
PCT_COST_MERGESORT_INDEX
*
100
;
bufend
=
innobase_convert_name
(
buf
,
sizeof
buf
,
indexes
[
i
]
->
name
,
strlen
(
indexes
[
i
]
->
name
),
trx
?
trx
->
mysql_thd
:
NULL
,
FALSE
);
buf
[
bufend
-
buf
]
=
'\0'
;
sql_print_information
(
"InnoDB: Online DDL : Start merge-sorting"
" index %s (%lu / %lu), estimated cost : %2.4f"
,
indexes
[
i
]
->
name
,
(
i
+
1
),
n_indexes
,
pct_cost
);
buf
,
(
i
+
1
),
n_indexes
,
pct_cost
);
error
=
row_merge_sort
(
trx
,
&
dup
,
&
merge_files
[
i
],
...
...
@@ -3751,7 +3760,7 @@ wait_again:
sql_print_information
(
"InnoDB: Online DDL : End of "
" merge-sorting index %s (%lu / %lu)"
,
indexes
[
i
]
->
name
,
(
i
+
1
),
n_indexes
);
buf
,
(
i
+
1
),
n_indexes
);
if
(
error
==
DB_SUCCESS
)
{
pct_cost
=
(
COST_BUILD_INDEX_STATIC
+
...
...
@@ -3762,7 +3771,7 @@ wait_again:
sql_print_information
(
"InnoDB: Online DDL : Start "
"building index %s (%lu / %lu), estimated "
"cost : %2.4f"
,
indexes
[
i
]
->
name
,
(
i
+
1
),
"cost : %2.4f"
,
buf
,
(
i
+
1
),
n_indexes
,
pct_cost
);
error
=
row_merge_insert_index_tuples
(
...
...
@@ -3773,7 +3782,7 @@ wait_again:
sql_print_information
(
"InnoDB: Online DDL : "
"End of building index %s (%lu / %lu)"
,
indexes
[
i
]
->
name
,
(
i
+
1
),
n_indexes
);
buf
,
(
i
+
1
),
n_indexes
);
}
}
...
...
storage/xtradb/row/row0merge.cc
View file @
4d0e5218
...
...
@@ -3736,6 +3736,8 @@ wait_again:
DEBUG_FTS_SORT_PRINT
(
"FTS_SORT: Complete Insert
\n
"
);
#endif
}
else
{
char
buf
[
3
*
NAME_LEN
];
char
*
bufend
;
row_merge_dup_t
dup
=
{
sort_idx
,
table
,
col_map
,
0
};
...
...
@@ -3745,9 +3747,16 @@ wait_again:
(
total_static_cost
+
total_dynamic_cost
)
*
PCT_COST_MERGESORT_INDEX
*
100
;
bufend
=
innobase_convert_name
(
buf
,
sizeof
buf
,
indexes
[
i
]
->
name
,
strlen
(
indexes
[
i
]
->
name
),
trx
?
trx
->
mysql_thd
:
NULL
,
FALSE
);
buf
[
bufend
-
buf
]
=
'\0'
;
sql_print_information
(
"InnoDB: Online DDL : Start merge-sorting"
" index %s (%lu / %lu), estimated cost : %2.4f"
,
indexes
[
i
]
->
name
,
(
i
+
1
),
n_indexes
,
pct_cost
);
buf
,
(
i
+
1
),
n_indexes
,
pct_cost
);
error
=
row_merge_sort
(
trx
,
&
dup
,
&
merge_files
[
i
],
...
...
@@ -3757,7 +3766,7 @@ wait_again:
sql_print_information
(
"InnoDB: Online DDL : End of "
" merge-sorting index %s (%lu / %lu)"
,
indexes
[
i
]
->
name
,
(
i
+
1
),
n_indexes
);
buf
,
(
i
+
1
),
n_indexes
);
if
(
error
==
DB_SUCCESS
)
{
pct_cost
=
(
COST_BUILD_INDEX_STATIC
+
...
...
@@ -3768,7 +3777,7 @@ wait_again:
sql_print_information
(
"InnoDB: Online DDL : Start "
"building index %s (%lu / %lu), estimated "
"cost : %2.4f"
,
indexes
[
i
]
->
name
,
(
i
+
1
),
"cost : %2.4f"
,
buf
,
(
i
+
1
),
n_indexes
,
pct_cost
);
error
=
row_merge_insert_index_tuples
(
...
...
@@ -3779,7 +3788,7 @@ wait_again:
sql_print_information
(
"InnoDB: Online DDL : "
"End of building index %s (%lu / %lu)"
,
indexes
[
i
]
->
name
,
(
i
+
1
),
n_indexes
);
buf
,
(
i
+
1
),
n_indexes
);
}
}
...
...
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