fix meta deadlock
This commit is contained in:
parent
f6f16ac197
commit
2b40ecf718
|
@ -280,7 +280,11 @@ int32_t metaResumeTbCursor(SMTbCursor *pTbCur, int8_t first, int8_t move) {
|
||||||
metaReaderDoInit(&pTbCur->mr, pTbCur->pMeta, META_READER_LOCK);
|
metaReaderDoInit(&pTbCur->mr, pTbCur->pMeta, META_READER_LOCK);
|
||||||
|
|
||||||
code = tdbTbcOpen(((SMeta *)pTbCur->pMeta)->pUidIdx, (TBC **)&pTbCur->pDbc, NULL);
|
code = tdbTbcOpen(((SMeta *)pTbCur->pMeta)->pUidIdx, (TBC **)&pTbCur->pDbc, NULL);
|
||||||
|
if (code != 0) {
|
||||||
|
metaReaderReleaseLock(&pTbCur->mr);
|
||||||
|
pTbCur->paused = 1;
|
||||||
TSDB_CHECK_CODE(code, lino, _exit);
|
TSDB_CHECK_CODE(code, lino, _exit);
|
||||||
|
}
|
||||||
|
|
||||||
if (first) {
|
if (first) {
|
||||||
code = tdbTbcMoveToFirst((TBC *)pTbCur->pDbc);
|
code = tdbTbcMoveToFirst((TBC *)pTbCur->pDbc);
|
||||||
|
|
Loading…
Reference in New Issue