fix: unlock meta

This commit is contained in:
wangmm0220 2022-06-23 12:11:12 +08:00
parent fb59f14289
commit eb8a68827a
1 changed files with 0 additions and 3 deletions

View File

@ -219,11 +219,9 @@ _err:
}
int metaTtlSmaller(SMeta *pMeta, uint64_t ttl, SArray *uidList){
metaRLock(pMeta);
TBC * pCur;
int ret = tdbTbcOpen(pMeta->pTtlIdx, &pCur, NULL);
if (ret < 0) {
metaULock(pMeta);
return ret;
}
@ -249,7 +247,6 @@ int metaTtlSmaller(SMeta *pMeta, uint64_t ttl, SArray *uidList){
tdbTbcClose(pCur);
tdbFree(pKey);
metaULock(pMeta);
return 0;
}