2
0

exitPotentialWriteReadDeadlock stops bgReader

It's not enough to stop the slowWriteTimer, because the bgReader may
have been started.
This commit is contained in:
Jack Christensen
2023-07-10 20:29:41 -05:00
committed by Jack Christensen
parent f512b9688b
commit 95aa87f2e8
+1
View File
@@ -1732,6 +1732,7 @@ func (pgConn *PgConn) exitPotentialWriteReadDeadlock() {
// The state of the timer is not relevant upon exiting the potential slow write. It may both
// fire (due to a slow write), or not fire (due to a fast write).
_ = pgConn.slowWriteTimer.Stop()
pgConn.bgReader.Stop()
}
func (pgConn *PgConn) flushWithPotentialWriteReadDeadlock() error {