remove transaction for Notice save; causes deadlocks
This commit is contained in:
parent
46b11070fe
commit
fb0d837ddc
@ -299,8 +299,6 @@ class Notice extends Memcached_DataObject
|
|||||||
|
|
||||||
// XXX: some of these functions write to the DB
|
// XXX: some of these functions write to the DB
|
||||||
|
|
||||||
$notice->query('BEGIN');
|
|
||||||
|
|
||||||
$id = $notice->insert();
|
$id = $notice->insert();
|
||||||
|
|
||||||
if (!$id) {
|
if (!$id) {
|
||||||
@ -342,8 +340,6 @@ class Notice extends Memcached_DataObject
|
|||||||
|
|
||||||
$notice->saveUrls();
|
$notice->saveUrls();
|
||||||
|
|
||||||
$notice->query('COMMIT');
|
|
||||||
|
|
||||||
Event::handle('EndNoticeSave', array($notice));
|
Event::handle('EndNoticeSave', array($notice));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user