【资源池化】修复多机concurrent创建索引死锁问题
This commit is contained in:
committed by
quemingjian (C)
parent
589a141616
commit
f1115e1ab4
@ -344,10 +344,7 @@ void spq_build_main(const BgWorkerContext *bwc)
|
||||
LOCKMODE heapLockmode = NoLock;
|
||||
LOCKMODE indexLockmode = NoLock;
|
||||
|
||||
if (!shared->isconcurrent) {
|
||||
heapLockmode = ShareLock;
|
||||
indexLockmode = AccessExclusiveLock;
|
||||
} else {
|
||||
if (shared->isconcurrent) {
|
||||
heapLockmode = ShareUpdateExclusiveLock;
|
||||
indexLockmode = RowExclusiveLock;
|
||||
}
|
||||
@ -666,4 +663,4 @@ void condition_signal(SPQSharedContext *shared)
|
||||
(void)pthread_cond_signal(&shared->m_cond);
|
||||
(void)pthread_mutex_unlock(&shared->m_mutex);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user