mirror of
https://github.com/sogou/workflow.git
synced 2026-02-08 01:33:17 +08:00
Merge branch 'master' of https://github.com/sogou/workflow into nossl
This commit is contained in:
@@ -108,7 +108,7 @@ int MySQLMessage::append(const void *buf, size_t *size)
|
||||
return -1;
|
||||
}
|
||||
|
||||
while (nleft > 0)
|
||||
do
|
||||
{
|
||||
n = nleft;
|
||||
ret = mysql_stream_write(buf, &n, stream_);
|
||||
@@ -124,9 +124,9 @@ int MySQLMessage::append(const void *buf, size_t *size)
|
||||
if (ret < 0)
|
||||
return -1;
|
||||
|
||||
nleft -= n;
|
||||
buf = (const char *)buf + n;
|
||||
}
|
||||
nleft -= n;
|
||||
} while (nleft > 0);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user