Merge branch 'master' of https://github.com/sogou/workflow into nossl

This commit is contained in:
Xie Han
2025-07-01 18:11:38 +08:00

View File

@@ -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;
}