Skip to content

Commit

Permalink
Merge pull request #43285 from nextcloud/fix/db/dirty-read-transactio…
Browse files Browse the repository at this point in the history
…n-message

fix(db): Give dirty read exception a message
  • Loading branch information
ChristophWurst authored Feb 15, 2024
2 parents 66824b6 + cf17a20 commit 76111e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/DB/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ public function executeQuery(string $sql, array $params = [], $types = [], Query
[
'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
Expand Down

0 comments on commit 76111e9

Please sign in to comment.