提交 b54d6e29 编写于 作者: K kailixu

chore: set default value of tsStartUdfd false on windows

上级 ccce04ce
......@@ -216,7 +216,11 @@ uint32_t tsCurRange = 100; // range
char tsCompressor[32] = "ZSTD_COMPRESSOR"; // ZSTD_COMPRESSOR or GZIP_COMPRESSOR
// udf
bool tsStartUdfd = true;
#ifdef WINDOWS
bool tsStartUdfd = false;
#else
bool tsStartUdfd = true;
#endif
// wal
int64_t tsWalFsyncDataSizeLimit = (100 * 1024 * 1024L);
......
......@@ -59,11 +59,9 @@ static int32_t dmOpenMgmt(SMgmtInputOpt *pInput, SMgmtOutputOpt *pOutput) {
return -1;
}
#ifndef WINDOWS
if (udfStartUdfd(pMgmt->pData->dnodeId) != 0) {
dError("failed to start udfd");
}
#endif
pOutput->pMgmt = pMgmt;
return 0;
......
......@@ -57,13 +57,11 @@ static int32_t qmOpen(SMgmtInputOpt *pInput, SMgmtOutputOpt *pOutput) {
}
tmsgReportStartup("qnode-impl", "initialized");
#ifndef WINDOWS
if (udfcOpen() != 0) {
dError("qnode can not open udfc");
qmClose(pMgmt);
return -1;
}
#endif
if (qmStartWorker(pMgmt) != 0) {
dError("failed to start qnode worker since %s", terrstr());
......
......@@ -65,13 +65,11 @@ int32_t smOpen(SMgmtInputOpt *pInput, SMgmtOutputOpt *pOutput) {
}
tmsgReportStartup("snode-worker", "initialized");
#ifndef WINDOWS
if (udfcOpen() != 0) {
dError("failed to open udfc in snode");
smClose(pMgmt);
return -1;
}
#endif
pOutput->pMgmt = pMgmt;
return 0;
......
......@@ -571,12 +571,10 @@ static int32_t vmInit(SMgmtInputOpt *pInput, SMgmtOutputOpt *pOutput) {
}
tmsgReportStartup("vnode-vnodes", "initialized");
#ifndef WINDOWS
if (udfcOpen() != 0) {
dError("failed to open udfc in vnode");
goto _OVER;
}
#endif
code = 0;
......
......@@ -198,10 +198,8 @@ void dmCleanup() {
monCleanup();
syncCleanUp();
walCleanUp();
#ifndef WINDOWS
udfcClose();
udfStopUdfd();
#endif
taosStopCacheRefreshWorker();
dmDiskClose();
dInfo("dnode env is cleaned up");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册