minor changes
This commit is contained in:
parent
29d56b0a64
commit
10fd86209d
|
@ -42,7 +42,6 @@ bool taosGetCpuUsage(float *sysCpuUsage, float *procCpuUsage);
|
||||||
bool taosGetTotalSysMemoryKB(uint64_t *kb);
|
bool taosGetTotalSysMemoryKB(uint64_t *kb);
|
||||||
bool taosGetProcMemory(float *memoryUsedMB); //
|
bool taosGetProcMemory(float *memoryUsedMB); //
|
||||||
bool taosGetSysMemory(float *memoryUsedMB); //
|
bool taosGetSysMemory(float *memoryUsedMB); //
|
||||||
void taosGetDisk();
|
|
||||||
int32_t taosGetDiskSize(char *dataDir, SDiskSize *diskSize);
|
int32_t taosGetDiskSize(char *dataDir, SDiskSize *diskSize);
|
||||||
bool taosReadProcIO(int64_t *rchars, int64_t *wchars);
|
bool taosReadProcIO(int64_t *rchars, int64_t *wchars);
|
||||||
bool taosGetProcIO(float *readKB, float *writeKB);
|
bool taosGetProcIO(float *readKB, float *writeKB);
|
||||||
|
|
|
@ -288,12 +288,9 @@ int32_t dndInit() {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
SVnodeOpt vnodeOpt = {
|
SVnodeOpt vnodeOpt = {.nthreads = tsNumOfCommitThreads,
|
||||||
.sver = tsVersion,
|
.putReqToVQueryQFp = dndPutReqToVQueryQ,
|
||||||
.nthreads = tsNumOfCommitThreads,
|
.sendReqToDnodeFp = dndSendReqToDnode};
|
||||||
.putReqToVQueryQFp = dndPutReqToVQueryQ,
|
|
||||||
.sendReqToDnodeFp = dndSendReqToDnode
|
|
||||||
};
|
|
||||||
|
|
||||||
if (vnodeInit(&vnodeOpt) != 0) {
|
if (vnodeInit(&vnodeOpt) != 0) {
|
||||||
dError("failed to init vnode since %s", terrstr());
|
dError("failed to init vnode since %s", terrstr());
|
||||||
|
@ -318,15 +315,3 @@ void dndCleanup() {
|
||||||
taosStopCacheRefreshWorker();
|
taosStopCacheRefreshWorker();
|
||||||
dInfo("dnode env is cleaned up");
|
dInfo("dnode env is cleaned up");
|
||||||
}
|
}
|
||||||
|
|
||||||
// OTHER FUNCTIONS ===================================
|
|
||||||
void taosGetDisk() {
|
|
||||||
#if 0
|
|
||||||
const double unit = 1024 * 1024 * 1024;
|
|
||||||
|
|
||||||
SDiskSize diskSize = tfsGetSize(pTfs);
|
|
||||||
|
|
||||||
tfsUpdateSize(&fsMeta);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
}
|
|
|
@ -60,10 +60,6 @@ typedef struct {
|
||||||
} SVnodeCfg;
|
} SVnodeCfg;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int32_t sver;
|
|
||||||
const char *timezone;
|
|
||||||
const char *locale;
|
|
||||||
const char *charset;
|
|
||||||
uint16_t nthreads; // number of commit threads. 0 for no threads and a schedule queue should be given (TODO)
|
uint16_t nthreads; // number of commit threads. 0 for no threads and a schedule queue should be given (TODO)
|
||||||
PutReqToVQueryQFp putReqToVQueryQFp;
|
PutReqToVQueryQFp putReqToVQueryQFp;
|
||||||
SendReqToDnodeFp sendReqToDnodeFp;
|
SendReqToDnodeFp sendReqToDnodeFp;
|
||||||
|
|
|
@ -167,11 +167,9 @@ void taosGetSystemInfo() {
|
||||||
tsTotalMemoryMB = taosGetTotalMemory();
|
tsTotalMemoryMB = taosGetTotalMemory();
|
||||||
|
|
||||||
float tmp1, tmp2;
|
float tmp1, tmp2;
|
||||||
// taosGetDisk();
|
|
||||||
taosGetBandSpeed(&tmp1);
|
taosGetBandSpeed(&tmp1);
|
||||||
taosGetCpuUsage(&tmp1, &tmp2);
|
taosGetCpuUsage(&tmp1, &tmp2);
|
||||||
taosGetProcIO(&tmp1, &tmp2);
|
taosGetProcIO(&tmp1, &tmp2);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void taosKillSystem() {
|
void taosKillSystem() {
|
||||||
|
@ -712,7 +710,6 @@ void taosGetSystemInfo() {
|
||||||
float tmp1, tmp2;
|
float tmp1, tmp2;
|
||||||
taosGetSysMemory(&tmp1);
|
taosGetSysMemory(&tmp1);
|
||||||
taosGetProcMemory(&tmp2);
|
taosGetProcMemory(&tmp2);
|
||||||
// taosGetDisk();
|
|
||||||
taosGetBandSpeed(&tmp1);
|
taosGetBandSpeed(&tmp1);
|
||||||
taosGetCpuUsage(&tmp1, &tmp2);
|
taosGetCpuUsage(&tmp1, &tmp2);
|
||||||
taosGetProcIO(&tmp1, &tmp2);
|
taosGetProcIO(&tmp1, &tmp2);
|
||||||
|
|
Loading…
Reference in New Issue