diff --git a/src/dnode/src/dnodeMgmt.c b/src/dnode/src/dnodeMgmt.c index eaf34c96298717b398afd317d2d726531667cb61..2b809e60be8d5982c50ad109a8489d2e6ad471a1 100644 --- a/src/dnode/src/dnodeMgmt.c +++ b/src/dnode/src/dnodeMgmt.c @@ -135,7 +135,7 @@ int32_t dnodeInitMgmt() { return -1; } - code = vonodeInitResources(); + code = vnodeInitResources(); if (code != TSDB_CODE_SUCCESS) { dnodeCleanupMgmt(); return -1; diff --git a/src/inc/vnode.h b/src/inc/vnode.h index 0c41485bb1a30f1a0faf3f82d8c759dfa6040106..f4ed7dbfaf57cd47a882a54e8c1a00837c8e0714 100644 --- a/src/inc/vnode.h +++ b/src/inc/vnode.h @@ -61,7 +61,7 @@ int32_t vnodeGetVnodeList(int32_t vnodeList[], int32_t *numOfVnodes); void vnodeBuildStatusMsg(void *param); void vnodeSetAccess(SDMVgroupAccess *pAccess, int32_t numOfVnodes); -int32_t vonodeInitResources(); +int32_t vnodeInitResources(); void vnodeCleanupResources(); int32_t vnodeProcessRead(void *pVnode, SReadMsg *pReadMsg); diff --git a/src/vnode/src/vnodeMain.c b/src/vnode/src/vnodeMain.c index d431eafcb5b82e30c518954d7e5447aca1c35507..0815a741c4806563091aa3e0ae14900269b21284 100644 --- a/src/vnode/src/vnodeMain.c +++ b/src/vnode/src/vnodeMain.c @@ -56,7 +56,7 @@ int syncGetNodesRole(tsync_h shandle, SNodesRole * cfg) { return 0; } void syncConfirmForward(tsync_h shandle, uint64_t version, int32_t code) {} #endif -int32_t vonodeInitResources() { +int32_t vnodeInitResources() { vnodeInitWriteFp(); vnodeInitReadFp();