Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiosmosis <diosmosis@users.noreply.github.com>2020-12-08 08:28:38 +0300
committerGitHub <noreply@github.com>2020-12-08 08:28:38 +0300
commit5377425108efe04af89ab34c2da28d264541f082 (patch)
tree903d977c76ebc7d166557b60907e404a4dcdaad5 /core/Db/BatchInsert.php
parentf0d6d1ad6213791c3f9bfa0caae32eb8368bcc75 (diff)
Avoid inserting duplicates in invalidation table to reduce IO. (#16843)4.0.5-b1
* Avoid inserting duplicates in invalidation table to reduce IO. * Limit to given sites to not select too much. * fix build * tweaks to duplicate checking query * more pr feedback * fix cron archive test
Diffstat (limited to 'core/Db/BatchInsert.php')
-rw-r--r--core/Db/BatchInsert.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/Db/BatchInsert.php b/core/Db/BatchInsert.php
index b980a818d2..6cb5729607 100644
--- a/core/Db/BatchInsert.php
+++ b/core/Db/BatchInsert.php
@@ -244,6 +244,9 @@ class BatchInsert
} catch (Exception $e) {
$code = $e->getCode();
$message = $e->getMessage() . ($code ? "[$code]" : '');
+ if (\Piwik_ShouldPrintBackTraceWithMessage()) {
+ $message .= "\n" . $e->getTraceAsString();
+ }
$exceptions[] = "\n Try #" . (count($exceptions) + 1) . ': ' . $queryStart . ": " . $message;
}
}