From: Christoph Wurst Date: Fri, 2 Feb 2024 11:58:47 +0000 (+0100) Subject: fix(db): Give dirty read exception a message X-Git-Tag: v29.0.0beta1~212^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cf17a2083569a2b43b803b44a12a4328c46d11f5;p=nextcloud-server.git fix(db): Give dirty read exception a message Signed-off-by: Christoph Wurst --- diff --git a/lib/private/DB/Connection.php b/lib/private/DB/Connection.php index 6b875bc42cc..a7164ecdc63 100644 --- a/lib/private/DB/Connection.php +++ b/lib/private/DB/Connection.php @@ -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