more code
This commit is contained in:
parent
de1a75f64d
commit
6d736bd099
|
@ -193,15 +193,15 @@ extern SDiskCfg tsDiskCfg[];
|
||||||
|
|
||||||
#define NEEDTO_COMPRESSS_MSG(size) (tsCompressMsgSize != -1 && (size) > tsCompressMsgSize)
|
#define NEEDTO_COMPRESSS_MSG(size) (tsCompressMsgSize != -1 && (size) > tsCompressMsgSize)
|
||||||
|
|
||||||
void taosInitGlobalCfg();
|
void taosInitGlobalCfg();
|
||||||
bool taosCheckGlobalCfg();
|
int32_t taosCheckGlobalCfg();
|
||||||
void taosSetAllDebugFlag();
|
void taosSetAllDebugFlag();
|
||||||
bool taosCfgDynamicOptions(char *msg);
|
bool taosCfgDynamicOptions(char *msg);
|
||||||
int taosGetFqdnPortFromEp(const char *ep, char *fqdn, uint16_t *port);
|
int taosGetFqdnPortFromEp(const char *ep, char *fqdn, uint16_t *port);
|
||||||
bool taosCheckBalanceCfgOptions(const char *option, int32_t *vnodeId, int32_t *dnodeId);
|
bool taosCheckBalanceCfgOptions(const char *option, int32_t *vnodeId, int32_t *dnodeId);
|
||||||
void taosAddDataDir(int index, char *v1, int level, int primary);
|
void taosAddDataDir(int index, char *v1, int level, int primary);
|
||||||
void taosReadDataDirCfg(char *v1, char *v2, char *v3);
|
void taosReadDataDirCfg(char *v1, char *v2, char *v3);
|
||||||
void taosPrintDataDirCfg();
|
void taosPrintDataDirCfg();
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
|
@ -132,13 +132,13 @@ ssize_t taosTCopy(char *from, char *to) {
|
||||||
if (fidto < 0) goto _err;
|
if (fidto < 0) goto _err;
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
bytes = taosTRead(fidfrom, buffer, sizeof(buffer));
|
bytes = taosRead(fidfrom, buffer, sizeof(buffer));
|
||||||
if (bytes < 0) goto _err;
|
if (bytes < 0) goto _err;
|
||||||
if (bytes == 0) break;
|
if (bytes == 0) break;
|
||||||
|
|
||||||
size += bytes;
|
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;
|
if (bytes < sizeof(buffer)) break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit f2ffd30521b8e8afbc9d25c75f8eeeb6a48bd030
|
|
Loading…
Reference in New Issue