This commit is contained in:
Hongze Cheng 2021-12-07 18:28:33 +08:00
parent f66db4b048
commit abfdaddec4
1 changed files with 5 additions and 5 deletions

View File

@ -75,12 +75,12 @@ static int metaSaveTbInfo(DB *pDB, tb_uid_t uid, STbCfg *pTbCfg);
#define META_CLOSE_DB(pDB)
#define META_ASSOCIATE_IDX(pDB, pIdx, cbf) \
do { \
do { \
int ret = (pDB)->associate((pDB), NULL, (pIdx), (cbf), 0); \
if (ret != 0) { \
P_ERROR("Failed to associate META DB", ret); \
metaCloseDB(pMeta); \
} \
if (ret != 0) { \
P_ERROR("Failed to associate META DB", ret); \
metaCloseDB(pMeta); \
} \
} while (0)
int metaOpenDB(SMeta *pMeta) {