##// END OF EJS Templates
Fixed slow SELECT ... FOR UPDATE query when deleting an issue....
Jean-Philippe Lang -
r12170:b8c94d93e951
parent child
Show More
@@ -443,7 +443,7 module CollectiveIdea #:nodoc:
443 443 in_tenacious_transaction do
444 444 reload_nested_set
445 445 # select the rows in the model that extend past the deletion point and apply a lock
446 self.class.base_class.
446 nested_set_scope.
447 447 select("id").
448 448 where("#{quoted_left_column_name} >= ?", left).
449 449 lock(true).
General Comments 0
You need to be logged in to leave comments. Login now