]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(db): Give dirty read exception a message 43285/head
authorChristoph Wurst <christoph@winzerhof-wurst.at>
Fri, 2 Feb 2024 11:58:47 +0000 (12:58 +0100)
committerChristoph Wurst <ChristophWurst@users.noreply.github.com>
Thu, 15 Feb 2024 08:14:47 +0000 (09:14 +0100)
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
lib/private/DB/Connection.php

index 6b875bc42ccd04724c5913592e03ebcd73ca2b40..a7164ecdc63697c89909d40ce2a6c46a80590d34 100644 (file)
@@ -282,7 +282,7 @@ class Connection extends PrimaryReadReplicaConnection {
                                [
                                        'tables' => $this->tableDirtyWrites,
                                        'reads' => $tables,
-                                       'exception' => new \Exception(),
+                                       'exception' => new \Exception('dirty table reads: ' . $sql),
                                ],
                        );
                        // To prevent a dirty read on a replica that is slightly out of sync, we