From 2f9c8417b63a7eab336862befaa77e582631e76b Mon Sep 17 00:00:00 2001 From: shenglian zhou Date: Mon, 26 Jun 2023 07:53:00 +0800 Subject: [PATCH] fix: use appname to see whether it is udfd --- source/dnode/mnode/impl/src/mndProfile.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/source/dnode/mnode/impl/src/mndProfile.c b/source/dnode/mnode/impl/src/mndProfile.c index f51cf614bd..b1c19098a5 100644 --- a/source/dnode/mnode/impl/src/mndProfile.c +++ b/source/dnode/mnode/impl/src/mndProfile.c @@ -25,7 +25,6 @@ #include "mndUser.h" #include "tglobal.h" #include "tversion.h" -#include "tudf.h" typedef struct { uint32_t id; @@ -245,10 +244,8 @@ static int32_t mndProcessConnectReq(SRpcMsg *pReq) { goto _OVER; } - int32_t udfdPid = -1; - udfGetUdfdPid(&udfdPid); // if connection is from udfd, no user/password/db check - if (udfdPid == connReq.pid) { + if (strcmp(connReq.app, "udfd") == 0) { goto _CONNECT; }