enh: disable udf on windows

This commit is contained in:
kailixu 2023-08-15 17:01:45 +08:00
parent 242bf77f4c
commit ccce04ceb9
5 changed files with 6 additions and 6 deletions

View File

@ -59,7 +59,7 @@ static int32_t dmOpenMgmt(SMgmtInputOpt *pInput, SMgmtOutputOpt *pOutput) {
return -1;
}
#ifdef WINDOWS
#ifndef WINDOWS
if (udfStartUdfd(pMgmt->pData->dnodeId) != 0) {
dError("failed to start udfd");
}

View File

@ -57,7 +57,7 @@ static int32_t qmOpen(SMgmtInputOpt *pInput, SMgmtOutputOpt *pOutput) {
}
tmsgReportStartup("qnode-impl", "initialized");
#ifdef WINDOWS
#ifndef WINDOWS
if (udfcOpen() != 0) {
dError("qnode can not open udfc");
qmClose(pMgmt);

View File

@ -65,7 +65,7 @@ int32_t smOpen(SMgmtInputOpt *pInput, SMgmtOutputOpt *pOutput) {
}
tmsgReportStartup("snode-worker", "initialized");
#ifdef WINDOWS
#ifndef WINDOWS
if (udfcOpen() != 0) {
dError("failed to open udfc in snode");
smClose(pMgmt);

View File

@ -571,7 +571,7 @@ static int32_t vmInit(SMgmtInputOpt *pInput, SMgmtOutputOpt *pOutput) {
}
tmsgReportStartup("vnode-vnodes", "initialized");
#ifdef WINDOWS
#ifndef WINDOWS
if (udfcOpen() != 0) {
dError("failed to open udfc in vnode");
goto _OVER;

View File

@ -198,10 +198,10 @@ void dmCleanup() {
monCleanup();
syncCleanUp();
walCleanUp();
#ifdef WINDOWS
#ifndef WINDOWS
udfcClose();
udfStopUdfd();
#endif
#endif
taosStopCacheRefreshWorker();
dmDiskClose();
dInfo("dnode env is cleaned up");