From b9dd56427c72d91be4f4d172ecda431a5b4fe9f2 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Wed, 28 Aug 2013 13:39:54 +0800 Subject: Bug 909278: deadlocks setting last_activity_ts --- Bugzilla/Bug.pm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Bugzilla/Bug.pm') diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index d974d8aa0..9446333d7 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -751,6 +751,9 @@ sub create { # sure we're inserting a good Bug ID. $bug->_sync_fulltext( new_bug => 1 ); + # BMO - some work should happen outside of the transaction block + Bugzilla::Hook::process('bug_after_create', { bug => $bug, timestamp => $timestamp }); + return $bug; } @@ -1081,6 +1084,10 @@ sub update { # relationship with this bug may have changed. delete $user->{_visible_bugs_cache}->{$self->id}; + # BMO - some work should happen outside of the transaction block + Bugzilla::Hook::process('bug_after_update', + { bug => $self, timestamp => $delta_ts, changes => $changes, old_bug => $old_bug }); + return $changes; } -- cgit v1.2.3-24-g4f1b