1
0
Fork 0
Commit graph

4 commits

Author SHA1 Message Date
Matthew Holt
1938dc2f1b
Replace frozen syscall package with x/sys 2025-10-01 12:29:43 -06:00
Matthew Holt
a4a4cfa370
Actually make exfat fix work
Oops
2025-09-30 13:04:07 -06:00
Matthew Holt
e87e5fcbaa
Fix spelling of function name 2025-09-30 12:49:15 -06:00
Matthew Holt
e9a7c03c53
Fix ExFAT crashes; refactor sql.DB handling
The crashes on ExFAT are caused by a bug in the MacOS ExFAT driver. It is unclear whether other OSes are affected too.

https://github.com/mattn/go-sqlite3/issues/1355

We now utilize sqlite's concurrency features by creating a write pool (size 1) and a read pool, and can eliminate our own RWMutex, which prevents reads at the same time as writes. Sqlite's WAL mode allows reads concurrent with writes, and our code is much cleaner.

Still need to do similar for the thumbnail DB.

Also could look into using prepared statements for more efficiency gains.
2025-09-30 12:31:41 -06:00