more code

This commit is contained in:
Hongze Cheng 2020-11-18 10:52:22 +08:00
parent de1a75f64d
commit 6d736bd099
3 changed files with 11 additions and 12 deletions

View File

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

View File

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

@ -1 +0,0 @@
Subproject commit f2ffd30521b8e8afbc9d25c75f8eeeb6a48bd030