提交 a2e074be 编写于 作者: S slzhou

feature(udf):move start/stop udfd out of dnode management preparation

上级 3a6a8a96
......@@ -311,11 +311,11 @@ static void dmWatchUdfd(void *args) {
return;
}
static int32_t dmStartUdfd(SDnode *pDnode, int32_t startDnodeId) {
static int32_t dmStartUdfd(SUdfdData *pUdfdData, int32_t startDnodeId) {
char dnodeId[8] = {0};
snprintf(dnodeId, sizeof(dnodeId), "%d", pDnode->data.dnodeId);
snprintf(dnodeId, sizeof(dnodeId), "%d", startDnodeId);
uv_os_setenv("DNODE_ID", dnodeId);
SUdfdData *pData = &pDnode->udfdData;
SUdfdData *pData = pUdfdData;
pData->dnodeId = startDnodeId;
if (pData->startCalled) {
dInfo("dnode-mgmt start udfd already called");
......@@ -385,7 +385,7 @@ static int32_t dmInitMgmt(SMgmtWrapper *pWrapper) {
}
dmReportStartup(pDnode, "dnode-transport", "initialized");
if (dmStartUdfd(pDnode, pDnode->data.dnodeId) != 0) {
if (dmStartUdfd(&pDnode->udfdData, pDnode->data.dnodeId) != 0) {
dError("failed to start udfd");
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册