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
664cc992
Commit
664cc992
authored
Jan 23, 2008
by
jonas@perch.ndb.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge perch.ndb.mysql.com:/home/jonas/src/50-telco-gca
into perch.ndb.mysql.com:/home/jonas/src/51-telco-gca
parents
94378f91
68b5382a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
+16
-6
storage/ndb/src/common/transporter/TCP_Transporter.cpp
storage/ndb/src/common/transporter/TCP_Transporter.cpp
+16
-6
No files found.
storage/ndb/src/common/transporter/TCP_Transporter.cpp
View file @
664cc992
...
@@ -310,22 +310,32 @@ TCP_Transporter::doSend() {
...
@@ -310,22 +310,32 @@ TCP_Transporter::doSend() {
// Empty the SendBuffers
// Empty the SendBuffers
const
char
*
const
sendPtr
=
m_sendBuffer
.
sendPtr
;
bool
sent_any
=
true
;
const
Uint32
sizeToSend
=
m_sendBuffer
.
sendDataSize
;
while
(
m_sendBuffer
.
dataSize
>
0
)
if
(
sizeToSend
>
0
){
{
const
char
*
const
sendPtr
=
m_sendBuffer
.
sendPtr
;
const
Uint32
sizeToSend
=
m_sendBuffer
.
sendDataSize
;
const
int
nBytesSent
=
send
(
theSocket
,
sendPtr
,
sizeToSend
,
0
);
const
int
nBytesSent
=
send
(
theSocket
,
sendPtr
,
sizeToSend
,
0
);
if
(
nBytesSent
>
0
)
{
if
(
nBytesSent
>
0
)
{
sent_any
=
true
;
m_sendBuffer
.
bytesSent
(
nBytesSent
);
m_sendBuffer
.
bytesSent
(
nBytesSent
);
sendCount
++
;
sendCount
++
;
sendSize
+=
nBytesSent
;
sendSize
+=
nBytesSent
;
if
(
sendCount
==
reportFreq
){
if
(
sendCount
==
reportFreq
)
{
reportSendLen
(
get_callback_obj
(),
remoteNodeId
,
sendCount
,
sendSize
);
reportSendLen
(
get_callback_obj
(),
remoteNodeId
,
sendCount
,
sendSize
);
sendCount
=
0
;
sendCount
=
0
;
sendSize
=
0
;
sendSize
=
0
;
}
}
}
else
{
}
else
{
if
(
nBytesSent
<
0
&&
InetErrno
==
EAGAIN
&&
sent_any
)
break
;
// Send failed
// Send failed
#if defined DEBUG_TRANSPORTER
#if defined DEBUG_TRANSPORTER
g_eventLogger
.
error
(
"Send Failure(disconnect==%d) to node = %d nBytesSent = %d "
g_eventLogger
.
error
(
"Send Failure(disconnect==%d) to node = %d nBytesSent = %d "
...
...
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