Skip to content

Commit 83cc761

Browse files
committed
Remove unnecessary route.reload after updating destinations
The reload and return value were unused by all callers. Removing them fixes a race condition where concurrent route deletion caused 500 errors. Observed error: Record not found (Sequel::NoExistingObject) at update_route_destinations.rb:97 in reload
1 parent c8604dc commit 83cc761

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

app/actions/update_route_destinations.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,6 @@ def update(route, to_add, to_delete, user_audit_info, manifest_triggered)
9393

9494
update_processes(processes_to_ports_map)
9595
end
96-
97-
route.reload
98-
99-
route
10096
end
10197

10298
def update_processes(processes_to_ports_map)

0 commit comments

Comments
 (0)