enh: disable udf on windows
This commit is contained in:
parent
242bf77f4c
commit
ccce04ceb9
|
@ -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");
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -198,7 +198,7 @@ void dmCleanup() {
|
|||
monCleanup();
|
||||
syncCleanUp();
|
||||
walCleanUp();
|
||||
#ifdef WINDOWS
|
||||
#ifndef WINDOWS
|
||||
udfcClose();
|
||||
udfStopUdfd();
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue