Commit c348742
committed
internal/postgres: remove the exclusive lock in upsertPath
As described in golang/go#75959, the lock in upsertPath causes a
significant amount of contention during module inserts. Meanwhile, the
upsertPaths method does not acquire a lock, and does not seem to cause
deadlocks.
We still don't understand the deadlocks avoided by this lock, but it
seems that a low level of failed transactions due to deadlock may be
preferable to the contention we're seeing currently. Let's experiment
with removing the lock.
For golang/go#75959
Change-Id: I2d577b426724010e96ffc8129ae469825fdcb938
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/718720
kokoro-CI: kokoro <[email protected]>
Reviewed-by: Ethan Lee <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
Reviewed-by: Jonathan Amsterdam <[email protected]>1 parent 0d7e290 commit c348742
1 file changed
+0
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | 87 | | |
91 | 88 | | |
92 | 89 | | |
| |||
0 commit comments