[ARVADOS] updated: 1f48e58568dc961fd1e606c1d9bc250de8c010f7

git at public.curoverse.com git at public.curoverse.com
Wed Dec 3 20:52:18 EST 2014


Summary of changes:
 services/api/app/controllers/database_controller.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

       via  1f48e58568dc961fd1e606c1d9bc250de8c010f7 (commit)
      from  9ea14a3e491b80ade4c7faadda723d9ccc1dd535 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 1f48e58568dc961fd1e606c1d9bc250de8c010f7
Author: Tom Clegg <tom at curoverse.com>
Date:   Wed Dec 3 20:50:46 2014 -0500

    4533: Fix wrong lock mode. refs #4533

diff --git a/services/api/app/controllers/database_controller.rb b/services/api/app/controllers/database_controller.rb
index 4c3f4d9..8314514 100644
--- a/services/api/app/controllers/database_controller.rb
+++ b/services/api/app/controllers/database_controller.rb
@@ -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

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list