Commit c079362
committed
graphdb: fix potential sql tx exhaustion
We should avoid taking the lock of a mutex inside transaction.
Currently we also take this lock in other places and there is a
chance that in case the application lock aquires the lock but
all transactions are already blocked waiting for the mutex to
unlock, we end up in a deadlock.1 parent 0aa757b commit c079362
2 files changed
+18
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2116 | 2116 | | |
2117 | 2117 | | |
2118 | 2118 | | |
| 2119 | + | |
| 2120 | + | |
| 2121 | + | |
| 2122 | + | |
| 2123 | + | |
| 2124 | + | |
| 2125 | + | |
2119 | 2126 | | |
2120 | 2127 | | |
2121 | 2128 | | |
| |||
2195 | 2202 | | |
2196 | 2203 | | |
2197 | 2204 | | |
2198 | | - | |
2199 | | - | |
2200 | | - | |
| 2205 | + | |
2201 | 2206 | | |
2202 | 2207 | | |
2203 | 2208 | | |
| |||
2208 | 2213 | | |
2209 | 2214 | | |
2210 | 2215 | | |
2211 | | - | |
2212 | | - | |
2213 | 2216 | | |
2214 | 2217 | | |
2215 | | - | |
2216 | 2218 | | |
2217 | 2219 | | |
2218 | 2220 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1126 | 1126 | | |
1127 | 1127 | | |
1128 | 1128 | | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
1129 | 1134 | | |
1130 | 1135 | | |
1131 | 1136 | | |
| |||
1178 | 1183 | | |
1179 | 1184 | | |
1180 | 1185 | | |
1181 | | - | |
| 1186 | + | |
| 1187 | + | |
1182 | 1188 | | |
1183 | 1189 | | |
1184 | 1190 | | |
1185 | | - | |
1186 | 1191 | | |
1187 | 1192 | | |
1188 | 1193 | | |
| |||
1216 | 1221 | | |
1217 | 1222 | | |
1218 | 1223 | | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
1219 | 1227 | | |
1220 | 1228 | | |
1221 | 1229 | | |
| |||
0 commit comments