From cf17a2083569a2b43b803b44a12a4328c46d11f5 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Fri, 2 Feb 2024 12:58:47 +0100 Subject: [PATCH] fix(db): Give dirty read exception a message Signed-off-by: Christoph Wurst --- lib/private/DB/Connection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5