Merge branch 'master' into 4638-ssh-notification
[arvados.git] / services / api / app / controllers / database_controller.rb
index 4c3f4d9f8e549160e681841338d253731812f363..831451435ef9f9adb47d974cdb91697f9db43f71 100644 (file)
@@ -34,7 +34,7 @@ class DatabaseController < ApplicationController
       # drastic.
       table_names = '"' + fixturesets.sort.join('","') + '"'
       ActiveRecord::Base.connection.execute \
-      "LOCK TABLE #{table_names} IN SHARE ROW EXCLUSIVE MODE"
+      "LOCK TABLE #{table_names} IN ACCESS EXCLUSIVE MODE"
 
       # Delete existing fixtures (and everything else) from fixture
       # tables