提交 fde6ef66 编写于 作者: H Hongze Cheng

refact

上级 702ec72e
......@@ -34,7 +34,7 @@ typedef struct {
void tdInitTier(STier *pTier, int level);
void tdDestroyTier(STier *pTier);
SDisk *tdAddDiskToTier(STier *pTier, SDiskCfg *pCfg);
SDisk *tdMountToTier(STier *pTier, SDiskCfg *pCfg);
int tdUpdateTierInfo(STier *pTier);
#ifdef __cplusplus
......
......@@ -172,7 +172,7 @@ static int tfsMount(SDiskCfg *pCfg) {
if (tfsCheckAndFormatCfg(pCfg) < 0) return -1;
did.level = pCfg->level;
did.id = tdAddDiskToTier(TIER_AT(pCfg->level), pCfg);
did.id = tdMountToTier(TIER_AT(pCfg->level), pCfg);
if (did.id < 0) {
fError("failed to mount %s to FS since %s", pCfg->dir, tstrerror(terrno));
return -1;
......
......@@ -29,7 +29,7 @@ void tdDestroyTier(STier *pTier) {
pTier->ndisk = 0;
}
SDisk *tdAddDiskToTier(STier *pTier, SDiskCfg *pCfg) {
SDisk *tdMountToTier(STier *pTier, SDiskCfg *pCfg) {
ASSERT(pTier->level == pCfg->level);
int id = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册