Skip to content

Always write non-first batched statements asynchronously - #3847

Merged
roji merged 1 commit into
mainfrom
MoreDeadlock
Jun 16, 2021
Merged

roji merged 1 commit into
mainfrom
MoreDeadlock

Conversation

@roji

@roji roji commented Jun 16, 2021

Copy link
Copy Markdown
Member

To avoid deadlocking.

Fixes #3846

@roji
roji requested a review from vonzshik June 16, 2021 11:01
@roji
roji enabled auto-merge (squash) June 16, 2021 11:06
Comment thread src/Npgsql/NpgsqlCommand.cs Resolved
@roji
roji merged commit 3b8034b into main Jun 16, 2021
@roji
roji deleted the MoreDeadlock branch June 16, 2021 12:52
roji added a commit that referenced this pull request Jun 16, 2021
To avoid deadlocking.

Fixes #3846

(cherry picked from commit 3b8034b)
roji added a commit that referenced this pull request Jun 16, 2021
To avoid deadlocking.

Fixes #3846

(cherry picked from commit 3b8034b)
roji added a commit that referenced this pull request Jun 16, 2021
To avoid deadlocking.

Fixes #3846

(cherry picked from commit 3b8034b)
@roji

roji commented Jun 16, 2021

Copy link
Copy Markdown
Member Author

Backported to 5.0.8 via 56ff868
Backported to 4.1.10 via fc36ec9
Backported to 4.0.12 via f022fa5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deadlock can occur in a batch when executing synchronously, with very specific statements

2 participants