forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitcaa3c42
committed
Don't call elog() while holding spinlock.
Previously UpdateSpillStats() called elog(DEBUG2) while holdingthe spinlock even though the local variables that the elog() accessesdon't need to be protected by the lock. Since spinlocks are intendedfor very short-term locks, they should not be used when callingelog(DEBUG2). So this commit moves that elog() out of spinlock period.Author: Kyotaro HoriguchiReviewed-by: Amit Kapila and Fujii MasaoDiscussion:https://postgr.es/m/20200602.161518.1399689010416646074.horikyota.ntt@gmail.com1 parente641b2a commitcaa3c42
1 file changed
+4
-6
lines changedLines changed: 4 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3685 | 3685 |
| |
3686 | 3686 |
| |
3687 | 3687 |
| |
3688 |
| - | |
3689 |
| - | |
3690 |
| - | |
3691 |
| - | |
3692 |
| - | |
3693 |
| - | |
3694 | 3688 |
| |
3695 | 3689 |
| |
3696 | 3690 |
| |
3697 | 3691 |
| |
3698 | 3692 |
| |
3699 | 3693 |
| |
| 3694 | + | |
| 3695 | + | |
| 3696 | + | |
| 3697 | + | |
3700 | 3698 |
| |
3701 | 3699 |
|
0 commit comments
Comments
(0)