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; return -1;
} }
#ifdef WINDOWS #ifndef WINDOWS
if (udfStartUdfd(pMgmt->pData->dnodeId) != 0) { if (udfStartUdfd(pMgmt->pData->dnodeId) != 0) {
dError("failed to start udfd"); dError("failed to start udfd");
} }

View File

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

View File

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

View File

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

View File

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