20472: Always do "select for update" before priority update
[arvados.git] / services / api / app / controllers / arvados / v1 / containers_controller.rb
index 9247327acd2f3583676ae8bacf5390795a4e95b3..ceb40348bbdfc723c30a5e9f99a76d0132ff6fe1 100644 (file)
@@ -33,8 +33,8 @@ class Arvados::V1::ContainersController < ApplicationController
   def update
     if (resource_attrs.keys - [:cost, :gateway_address, :output_properties, :progress, :runtime_status]).empty?
       # If no attributes are being updated besides these, there are no
-      # cascading changes to other rows/tables, so we should just use
-      # row locking.
+      # cascading changes to other rows/tables, the only lock will the
+      # single row lock on SQL UPDATE.
       super
     else
       Container.transaction do