Skip to content

Commit

Permalink
Fix possible db dead lock
Browse files Browse the repository at this point in the history
Fixes #1483
  • Loading branch information
AsamK committed Sep 8, 2024
1 parent 82fbde4 commit ea436ec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ public GroupInfoV2 getGroupOrPartialMigrate(
private GroupInfoV2 getGroupOrPartialMigrate(
Connection connection, final GroupMasterKey groupMasterKey, final GroupIdV2 groupId
) throws SQLException {
switch (getGroup(groupId)) {
switch (getGroup(connection, (GroupId) groupId)) {
case GroupInfoV1 groupInfoV1 -> {
// Received a v2 group message for a v1 group, we need to locally migrate the group
deleteGroup(connection, groupInfoV1.getGroupId());
Expand Down

0 comments on commit ea436ec

Please sign in to comment.