提交 6d736bd0 编写于 作者: H Hongze Cheng

more code

上级 de1a75f6
......@@ -194,7 +194,7 @@ extern SDiskCfg tsDiskCfg[];
#define NEEDTO_COMPRESSS_MSG(size) (tsCompressMsgSize != -1 && (size) > tsCompressMsgSize)
void taosInitGlobalCfg();
bool taosCheckGlobalCfg();
int32_t taosCheckGlobalCfg();
void taosSetAllDebugFlag();
bool taosCfgDynamicOptions(char *msg);
int taosGetFqdnPortFromEp(const char *ep, char *fqdn, uint16_t *port);
......
......@@ -132,13 +132,13 @@ ssize_t taosTCopy(char *from, char *to) {
if (fidto < 0) goto _err;
while (true) {
bytes = taosTRead(fidfrom, buffer, sizeof(buffer));
bytes = taosRead(fidfrom, buffer, sizeof(buffer));
if (bytes < 0) goto _err;
if (bytes == 0) break;
size += bytes;
if (taosTWrite(fidto, (void *)buffer, bytes) < bytes) goto _err;
if (taosWrite(fidto, (void *)buffer, bytes) < bytes) goto _err;
if (bytes < sizeof(buffer)) break;
}
......
Subproject commit f2ffd30521b8e8afbc9d25c75f8eeeb6a48bd030
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册