summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2013-08-28 07:39:54 +0200
committerByron Jones <bjones@mozilla.com>2013-08-28 07:39:54 +0200
commitb9dd56427c72d91be4f4d172ecda431a5b4fe9f2 (patch)
treeabc247d6be1d8cb92bb0fcfab0aac682f6662e0d /Bugzilla
parent2c4fbcab12ab051488bc2bcaf2dca51cb5e8bfba (diff)
downloadbugzilla-b9dd56427c72d91be4f4d172ecda431a5b4fe9f2.tar.gz
bugzilla-b9dd56427c72d91be4f4d172ecda431a5b4fe9f2.tar.xz
Bug 909278: deadlocks setting last_activity_ts
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Bug.pm7
1 files changed, 7 insertions, 0 deletions
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;
}