!4644 【资源池化】【bugfix】存在分布式锁没有释放的情况

Merge pull request !4644 from 董宁/bugfix13_master
This commit is contained in:
opengauss_bot
2023-12-18 11:33:26 +00:00
committed by Gitee

View File

@ -1261,9 +1261,7 @@ static void RemoveLocalLock(LOCALLOCK *locallock)
if (!hash_search(t_thrd.storage_cxt.LockMethodLocalHash, (void *)&(locallock->tag), HASH_REMOVE, NULL))
ereport(WARNING, (errmsg("locallock table corrupted")));
if (!RecoveryInProgress()) {
SSDmsLockRelease(locallock);
}
SSDmsLockRelease(locallock);
}
inline bool IsInSameLockGroup(const PROCLOCK *proclock1, const PROCLOCK *proclock2)