This repository was archived by the owner on Mar 9, 2022. It is now read-only.
Commit eebf88d
hideki
Fixed Java Core 937 - Dead Lock in inTransaction
Problem:
- cbforest inTransaction acquires lock of database, then acquires lock for transaction. Other code could acquire lock for transaction, then acquires lock of database. this causes dead-lock.
Solution:
In case of enabling threadSafety for cbforest, needs to avoid to use inTransaction of cbforest. Instead of calling inTransaction, ForestDBStore maintain transactionLevel per thread.1 parent 010a796 commit eebf88d
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
97 | 104 | | |
98 | 105 | | |
99 | 106 | | |
| |||
249 | 256 | | |
250 | 257 | | |
251 | 258 | | |
252 | | - | |
| 259 | + | |
| 260 | + | |
253 | 261 | | |
254 | 262 | | |
255 | 263 | | |
| |||
1226 | 1234 | | |
1227 | 1235 | | |
1228 | 1236 | | |
| 1237 | + | |
1229 | 1238 | | |
1230 | 1239 | | |
1231 | 1240 | | |
| |||
1235 | 1244 | | |
1236 | 1245 | | |
1237 | 1246 | | |
| 1247 | + | |
1238 | 1248 | | |
1239 | 1249 | | |
1240 | 1250 | | |
| |||
0 commit comments