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
94c71f4b
Commit
94c71f4b
authored
Feb 10, 2004
by
konstantin@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Another implementation of send_eof() cleanup
parent
dc696d2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
sql/protocol.cc
sql/protocol.cc
+4
-5
No files found.
sql/protocol.cc
View file @
94c71f4b
...
...
@@ -313,6 +313,7 @@ send_ok(THD *thd, ha_rows affected_rows, ulonglong id, const char *message)
DBUG_VOID_RETURN
;
}
static
char
eof_buff
[
1
]
=
{
(
char
)
254
};
/* Marker for end of fields */
/*
Send eof (= end of result set) to the client
...
...
@@ -339,12 +340,11 @@ send_ok(THD *thd, ha_rows affected_rows, ulonglong id, const char *message)
void
send_eof
(
THD
*
thd
,
bool
no_flush
)
{
static
char
eof_buff
[
1
]
=
{
(
char
)
254
};
/* Marker for end of fields */
NET
*
net
=
&
thd
->
net
;
DBUG_ENTER
(
"send_eof"
);
if
(
net
->
vio
!=
0
)
{
if
(
!
no_flush
&&
(
thd
->
client_capabilities
&
CLIENT_PROTOCOL_41
)
)
if
(
thd
->
client_capabilities
&
CLIENT_PROTOCOL_41
)
{
uchar
buff
[
5
];
uint
tmp
=
min
(
thd
->
total_warn_count
,
65535
);
...
...
@@ -384,9 +384,8 @@ send_eof(THD *thd, bool no_flush)
bool
send_old_password_request
(
THD
*
thd
)
{
static
char
buff
[
1
]
=
{
(
char
)
254
};
NET
*
net
=
&
thd
->
net
;
return
my_net_write
(
net
,
buff
,
1
)
||
net_flush
(
net
);
return
my_net_write
(
net
,
eof_
buff
,
1
)
||
net_flush
(
net
);
}
#endif
/* EMBEDDED_LIBRARY */
...
...
@@ -585,7 +584,7 @@ bool Protocol::send_fields(List<Item> *list, uint flag)
#endif
}
send_eof
(
thd
,
1
);
my_net_write
(
&
thd
->
net
,
eof_buff
,
1
);
DBUG_RETURN
(
prepare_for_send
(
list
));
err:
...
...
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