refactor: do some internal refactor.
This commit is contained in:
parent
899d13b4ae
commit
ae25f09c45
|
@ -1093,17 +1093,22 @@ void streamMetaResetStartInfo(STaskStartInfo* pStartInfo) {
|
||||||
void streamMetaRLock(SStreamMeta* pMeta) {
|
void streamMetaRLock(SStreamMeta* pMeta) {
|
||||||
stDebug("vgId:%d meta-rlock", pMeta->vgId);
|
stDebug("vgId:%d meta-rlock", pMeta->vgId);
|
||||||
taosRLockLatch(&pMeta->lock);
|
taosRLockLatch(&pMeta->lock);
|
||||||
|
stDebug("vgId:%d meta-rlock done", pMeta->vgId);
|
||||||
}
|
}
|
||||||
void streamMetaRUnLock(SStreamMeta* pMeta) {
|
void streamMetaRUnLock(SStreamMeta* pMeta) {
|
||||||
stDebug("vgId:%d meta-runlock", pMeta->vgId);
|
stDebug("vgId:%d meta-runlock", pMeta->vgId);
|
||||||
taosRUnLockLatch(&pMeta->lock);
|
taosRUnLockLatch(&pMeta->lock);
|
||||||
|
stDebug("vgId:%d meta-runlock done", pMeta->vgId);
|
||||||
|
|
||||||
}
|
}
|
||||||
void streamMetaWLock(SStreamMeta* pMeta) {
|
void streamMetaWLock(SStreamMeta* pMeta) {
|
||||||
stDebug("vgId:%d meta-wlock", pMeta->vgId);
|
stDebug("vgId:%d meta-wlock", pMeta->vgId);
|
||||||
taosWLockLatch(&pMeta->lock);
|
taosWLockLatch(&pMeta->lock);
|
||||||
|
stDebug("vgId:%d meta-wlock done", pMeta->vgId);
|
||||||
}
|
}
|
||||||
void streamMetaWUnLock(SStreamMeta* pMeta) {
|
void streamMetaWUnLock(SStreamMeta* pMeta) {
|
||||||
stDebug("vgId:%d meta-wunlock", pMeta->vgId);
|
stDebug("vgId:%d meta-wunlock", pMeta->vgId);
|
||||||
taosWUnLockLatch(&pMeta->lock);
|
taosWUnLockLatch(&pMeta->lock);
|
||||||
|
stDebug("vgId:%d meta-wunlock done", pMeta->vgId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue