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
fbad1b11
Commit
fbad1b11
authored
May 09, 2021
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-19237 - small performance tweak
Avoid calling constructor for Protocol_text, if not necessary.
parent
916b237b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
sql/protocol.cc
sql/protocol.cc
+3
-3
No files found.
sql/protocol.cc
View file @
fbad1b11
...
...
@@ -1168,9 +1168,6 @@ static bool should_send_column_info(THD* thd, List<Item>* list, uint flags)
*/
bool
Protocol
::
send_result_set_metadata
(
List
<
Item
>
*
list
,
uint
flags
)
{
List_iterator_fast
<
Item
>
it
(
*
list
);
Item
*
item
;
Protocol_text
prot
(
thd
,
thd
->
variables
.
net_buffer_length
);
DBUG_ENTER
(
"Protocol::send_result_set_metadata"
);
bool
send_column_info
=
should_send_column_info
(
thd
,
list
,
flags
);
...
...
@@ -1195,6 +1192,9 @@ bool Protocol::send_result_set_metadata(List<Item> *list, uint flags)
if
(
send_column_info
)
{
List_iterator_fast
<
Item
>
it
(
*
list
);
Item
*
item
;
Protocol_text
prot
(
thd
,
thd
->
variables
.
net_buffer_length
);
#ifndef DBUG_OFF
field_handlers
=
(
const
Type_handler
**
)
thd
->
alloc
(
sizeof
(
field_handlers
[
0
])
*
list
->
elements
);
...
...
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