X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/248c7167e95d970b770c43102ee68cf1319973f7..37ab0eedec5eaf99c27b6b64fd04cc9248081713:/services/api/app/controllers/arvados/v1/containers_controller.rb diff --git a/services/api/app/controllers/arvados/v1/containers_controller.rb b/services/api/app/controllers/arvados/v1/containers_controller.rb index fc5614d944..041f559472 100644 --- a/services/api/app/controllers/arvados/v1/containers_controller.rb +++ b/services/api/app/controllers/arvados/v1/containers_controller.rb @@ -30,7 +30,6 @@ class Arvados::V1::ContainersController < ApplicationController def update @object.with_lock do - @object.reload super end end @@ -39,7 +38,7 @@ class Arvados::V1::ContainersController < ApplicationController super if action_name == 'lock' || action_name == 'unlock' # Avoid loading more fields than we need - @objects = @objects.select(:id, :uuid, :state, :priority, :auth_uuid, :locked_by_uuid) + @objects = @objects.select(:id, :uuid, :state, :priority, :auth_uuid, :locked_by_uuid, :lock_count) @select = %w(uuid state priority auth_uuid locked_by_uuid) end end