fix: meta snapshot drop table error
This commit is contained in:
parent
c6294200ea
commit
c28ee64477
|
@ -79,6 +79,7 @@ int32_t metaSnapRead(SMetaSnapReader* pReader, uint8_t** ppData) {
|
||||||
int32_t nKey = 0;
|
int32_t nKey = 0;
|
||||||
int32_t nData = 0;
|
int32_t nData = 0;
|
||||||
STbDbKey key;
|
STbDbKey key;
|
||||||
|
SMetaInfo info;
|
||||||
|
|
||||||
*ppData = NULL;
|
*ppData = NULL;
|
||||||
for (;;) {
|
for (;;) {
|
||||||
|
@ -91,7 +92,8 @@ int32_t metaSnapRead(SMetaSnapReader* pReader, uint8_t** ppData) {
|
||||||
goto _exit;
|
goto _exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (key.version < pReader->sver) {
|
if (key.version < pReader->sver //
|
||||||
|
|| metaGetInfo(pReader->pMeta, key.uid, &info, NULL) == TSDB_CODE_NOT_FOUND) {
|
||||||
tdbTbcMoveToNext(pReader->pTbc);
|
tdbTbcMoveToNext(pReader->pTbc);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue