提交 1e22d875 编写于 作者: H Haojun Liao

fix: fix dead lock.

上级 1090afd1
...@@ -26,6 +26,7 @@ void _metaReaderInit(SMetaReader* pReader, void* pVnode, int32_t flags, SStoreMe ...@@ -26,6 +26,7 @@ void _metaReaderInit(SMetaReader* pReader, void* pVnode, int32_t flags, SStoreMe
void metaReaderInit(SMetaReader *pReader, SMeta *pMeta, int32_t flags) { void metaReaderInit(SMetaReader *pReader, SMeta *pMeta, int32_t flags) {
memset(pReader, 0, sizeof(*pReader)); memset(pReader, 0, sizeof(*pReader));
pReader->pMeta = pMeta; pReader->pMeta = pMeta;
pReader->flags = flags;
if (pReader->pMeta && !(flags & META_READER_NOLOCK)) { if (pReader->pMeta && !(flags & META_READER_NOLOCK)) {
metaRLock(pMeta); metaRLock(pMeta);
} }
......
...@@ -200,7 +200,6 @@ void initMetaReaderAPI(SStoreMetaReader* pMetaReader) { ...@@ -200,7 +200,6 @@ void initMetaReaderAPI(SStoreMetaReader* pMetaReader) {
pMetaReader->clearReader = metaReaderClear; pMetaReader->clearReader = metaReaderClear;
pMetaReader->getTableEntryByUid = metaReaderGetTableEntryByUid; pMetaReader->getTableEntryByUid = metaReaderGetTableEntryByUid;
pMetaReader->clearReader = metaReaderClear;
pMetaReader->getEntryGetUidCache = metaReaderGetTableEntryByUidCache; pMetaReader->getEntryGetUidCache = metaReaderGetTableEntryByUidCache;
pMetaReader->getTableEntryByName = metaGetTableEntryByName; pMetaReader->getTableEntryByName = metaGetTableEntryByName;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册