setVertexArrivals use tag_group_lock

Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry 2025-09-04 18:36:18 -07:00
parent 45a8a1bcc0
commit 774c3c68f1
2 changed files with 1 additions and 2 deletions

View File

@ -647,7 +647,6 @@ protected:
// Capacity of tag_groups_.
TagGroupIndex tag_group_capacity_;
std::mutex tag_group_lock_;
std::mutex tag_group_ref_count_lock_;
// Latches data outputs to queue on the next search pass.
VertexSet *pending_latch_outputs_;
std::mutex pending_latch_outputs_lock_;

View File

@ -2783,7 +2783,7 @@ Search::setVertexArrivals(Vertex *vertex,
}
}
if (tag_group != prev_tag_group) {
LockGuard lock(tag_group_ref_count_lock_);
LockGuard lock(tag_group_lock_);
tag_group->incrRefCount();
if (prev_tag_group) {
prev_tag_group->decrRefCount();