20470: Remove locks on containers table
[arvados.git] / services / api / app / controllers / arvados / v1 / container_requests_controller.rb
index 75f70b1a2d7a8637cccad16e353b3ee757743171..afddd56864b42c2f92bdb105c5e1a3551068eae5 100644 (file)
@@ -29,19 +29,4 @@ class Arvados::V1::ContainerRequestsController < ApplicationController
       })
   end
 
-  def create
-    # Lock containers table to avoid deadlock in cascading priority update (see #20240)
-    Container.transaction do
-      ActiveRecord::Base.connection.execute "LOCK TABLE containers IN EXCLUSIVE MODE"
-      super
-    end
-  end
-
-  def update
-    # Lock containers table to avoid deadlock in cascading priority update (see #20240)
-    Container.transaction do
-      ActiveRecord::Base.connection.execute "LOCK TABLE containers IN EXCLUSIVE MODE"
-      super
-    end
-  end
 end