fix(db): Give dirty read exception a message

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst 2024-02-02 12:58:47 +01:00 committed by Christoph Wurst
parent 299e5fd602
commit cf17a20835

View 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