fix: unlock meta
This commit is contained in:
parent
fb59f14289
commit
eb8a68827a
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue