mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-08-02 22:22:46 +00:00
HACK: Track goroutine IDs to determine when we write by the wrong thread
To use: set `DENDRITE_TRACE_SQL=1` then grep for `unsafe`
This commit is contained in:
parent
a9f4d83d30
commit
bfecc8e0e9
5 changed files with 233 additions and 6 deletions
|
@ -26,3 +26,7 @@ func (w *DummyWriter) Do(db *sql.DB, txn *sql.Tx, f func(txn *sql.Tx) error) err
|
|||
return f(txn)
|
||||
}
|
||||
}
|
||||
|
||||
func (w *DummyWriter) Safe() string {
|
||||
return "DummyWriter"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue