protected function _postSaveAfterTransaction() { if (SV_DeadlockAvoidance_DataWriter::registerPostTransactionClosure(function () { parent::_postSaveAfterTransaction(); })) { return; } parent::_postSaveAfterTransaction(); }
public function _indexForSearch() { if (SV_DeadlockAvoidance_DataWriter::registerPostTransactionClosure(function () { parent::_indexForSearch(); })) { return; } parent::_indexForSearch(); }
public function sendAlertsOnReportRejection(array $report, $comment = '') { if (SV_DeadlockAvoidance_DataWriter::registerPostTransactionClosure(function () use($report, $comment) { parent::sendAlertsOnReportRejection($report, $comment); })) { return; } parent::sendAlertsOnReportRejection($report, $comment); }
public function deleteAlerts($contentType, $contentId, $userId = null, $action = null) { if (SV_DeadlockAvoidance_DataWriter::registerPostTransactionClosure(function () use($contentType, $contentId, $userId, $action) { parent::deleteAlerts($contentType, $contentId, $userId, $action); })) { return; } parent::deleteAlerts($contentType, $contentId, $userId, $action); }
public function rebuildUnreadConversationCountForUser($userId) { if (SV_DeadlockAvoidance_DataWriter::registerPostTransactionClosure(function () use($userId) { XenForo_Db::beginTransaction(); parent::rebuildUnreadConversationCountForUser($userId); XenForo_Db::commit(); })) { return; } parent::rebuildUnreadConversationCountForUser($userId); }