more
This commit is contained in:
parent
f66db4b048
commit
abfdaddec4
|
@ -75,12 +75,12 @@ static int metaSaveTbInfo(DB *pDB, tb_uid_t uid, STbCfg *pTbCfg);
|
||||||
#define META_CLOSE_DB(pDB)
|
#define META_CLOSE_DB(pDB)
|
||||||
|
|
||||||
#define META_ASSOCIATE_IDX(pDB, pIdx, cbf) \
|
#define META_ASSOCIATE_IDX(pDB, pIdx, cbf) \
|
||||||
do { \
|
do { \
|
||||||
int ret = (pDB)->associate((pDB), NULL, (pIdx), (cbf), 0); \
|
int ret = (pDB)->associate((pDB), NULL, (pIdx), (cbf), 0); \
|
||||||
if (ret != 0) { \
|
if (ret != 0) { \
|
||||||
P_ERROR("Failed to associate META DB", ret); \
|
P_ERROR("Failed to associate META DB", ret); \
|
||||||
metaCloseDB(pMeta); \
|
metaCloseDB(pMeta); \
|
||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
int metaOpenDB(SMeta *pMeta) {
|
int metaOpenDB(SMeta *pMeta) {
|
||||||
|
|
Loading…
Reference in New Issue