projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
closes #9824
[arvados.git]
/
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 35803973e018dd46718eb84e43368d46ffe70b65..21ee7efa53b5d4008c0f42717095194b9b0c39c6 100644
(file)
--- a/
services/api/app/controllers/arvados/v1/containers_controller.rb
+++ b/
services/api/app/controllers/arvados/v1/containers_controller.rb
@@
-11,4
+11,12
@@
class Arvados::V1::ContainersController < ApplicationController
@object = @object.auth
show
end
+
+ # Updates use row locking to resolve races between multiple
+ # dispatchers trying to lock the same container.
+ def update
+ @object.with_lock do
+ super
+ end
+ end
end