fix dead lock
This commit is contained in:
parent
b49d9f3691
commit
12f9e268a6
|
@ -508,7 +508,7 @@ int32_t walEndSnapshot(SWal *pWal) {
|
|||
taosArrayClear(pWal->toDeleteFiles);
|
||||
|
||||
_exit:
|
||||
taosThreadRwlockWrlock(&pWal->mutex);
|
||||
taosThreadRwlockUnlock(&pWal->mutex);
|
||||
|
||||
if (code) {
|
||||
wError("vgId:%d, %s failed at line %d since %s", pWal->cfg.vgId, __func__, lino, tstrerror(code));
|
||||
|
|
Loading…
Reference in New Issue