Commit 0464f25
committed
Set MyProc->heldLocks in ProcSleep
Previously, ProcSleep()'s caller was responsible for setting
MyProc->heldLocks, and we had comments to remind about that. But it
seems simpler to make ProcSleep() itself responsible for it.
ProcSleep() already set the other info about the lock its waiting for
(waitLock, waitProcLock and waitLockMode), so it is natural for it to
set heldLocks too.
Reviewed-by: Maxim Orlov
Discussion: https://www.postgresql.org/message-id/7c2090cd-a72a-4e34-afaa-6dd2ef31440e@iki.fi1 parent 62620b6 commit 0464f25
2 files changed
+7
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1095 | 1095 | | |
1096 | 1096 | | |
1097 | 1097 | | |
1098 | | - | |
1099 | | - | |
1100 | | - | |
1101 | | - | |
1102 | | - | |
1103 | 1098 | | |
1104 | 1099 | | |
1105 | 1100 | | |
| |||
1856 | 1851 | | |
1857 | 1852 | | |
1858 | 1853 | | |
1859 | | - | |
1860 | | - | |
1861 | | - | |
1862 | 1854 | | |
1863 | 1855 | | |
1864 | 1856 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1080 | 1080 | | |
1081 | 1081 | | |
1082 | 1082 | | |
1083 | | - | |
1084 | | - | |
1085 | | - | |
1086 | 1083 | | |
1087 | 1084 | | |
1088 | 1085 | | |
| |||
1112 | 1109 | | |
1113 | 1110 | | |
1114 | 1111 | | |
1115 | | - | |
| 1112 | + | |
| 1113 | + | |
1116 | 1114 | | |
1117 | 1115 | | |
1118 | 1116 | | |
| |||
1121 | 1119 | | |
1122 | 1120 | | |
1123 | 1121 | | |
| 1122 | + | |
| 1123 | + | |
1124 | 1124 | | |
1125 | 1125 | | |
1126 | 1126 | | |
| |||
1130 | 1130 | | |
1131 | 1131 | | |
1132 | 1132 | | |
| 1133 | + | |
| 1134 | + | |
1133 | 1135 | | |
1134 | 1136 | | |
1135 | 1137 | | |
| |||
1234 | 1236 | | |
1235 | 1237 | | |
1236 | 1238 | | |
| 1239 | + | |
1237 | 1240 | | |
1238 | 1241 | | |
1239 | 1242 | | |
| |||
0 commit comments