diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2024-02-02 12:58:47 +0100 |
---|---|---|
committer | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2024-02-15 09:14:47 +0100 |
commit | cf17a2083569a2b43b803b44a12a4328c46d11f5 (patch) | |
tree | 1ac0d50a4892a44399f1b3d7248e4b551f6bc4ed /lib | |
parent | 299e5fd60224195a8cbce22b69320e01939af17b (diff) | |
download | nextcloud-server-cf17a2083569a2b43b803b44a12a4328c46d11f5.tar.gz nextcloud-server-cf17a2083569a2b43b803b44a12a4328c46d11f5.zip |
fix(db): Give dirty read exception a message
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/DB/Connection.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 |