Commit 9284734
committed
fix(powersync): use read lock for BucketStorage.select()
BucketStorage.select() is documented for read statements only, but called
_internalDb.execute(), which acquires a write lock. All callers run SELECTs,
so route them through getAll() to take a read lock instead. This avoids
serializing read-only queries behind the write lock (e.g. on web with
SqliteConnectionPool).
Closes #3841 parent 231a3e9 commit 9284734
2 files changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
1 | 5 | | |
2 | 6 | | |
3 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
0 commit comments