Example #1
0
 protected function _postSaveAfterTransaction()
 {
     if (SV_DeadlockAvoidance_DataWriter::registerPostTransactionClosure(function () {
         parent::_postSaveAfterTransaction();
     })) {
         return;
     }
     parent::_postSaveAfterTransaction();
 }
Example #2
0
 public function _indexForSearch()
 {
     if (SV_DeadlockAvoidance_DataWriter::registerPostTransactionClosure(function () {
         parent::_indexForSearch();
     })) {
         return;
     }
     parent::_indexForSearch();
 }
Example #3
0
 public function sendAlertsOnReportRejection(array $report, $comment = '')
 {
     if (SV_DeadlockAvoidance_DataWriter::registerPostTransactionClosure(function () use($report, $comment) {
         parent::sendAlertsOnReportRejection($report, $comment);
     })) {
         return;
     }
     parent::sendAlertsOnReportRejection($report, $comment);
 }
Example #4
0
 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);
 }