3 ms·
One big danger seems to be that POSIX locks don't like having two fds for the same file in the same process. But Linux has a newish kind of lock that is backwa
by amluto 10y ago
One big danger seems to be that POSIX locks don't like having two fds for the same file in the same process. But Linux has a newish kind of lock that is backwards-compatible and works better. I would love for SQLite to use it.
Does SQLite accept patches?
- kiallmacinnes 10y agoPatches are accepted, though.. SQLite is, by all accounts I've read, a very well written and tested piece of software, and I'd be surprised if there was an easy and safe win like this which hasn't already been proposed / considered. Though, my guess shouldn't stop you looking for previous suggestions to implement this, and if there are none, submitting it yourself :)
- stuaxo 10y agoIt's amazing how many quick wins are to be had in open source if you have the time to patch yourself.
- pjmlp 10y agoPOSIX locks semantics are implementation defined, hence why they are pretty much useless unless all applications access the same set of files play by the same rules.
- zurn 10y agoOr the apps all know which implemnetation they are running on (Linux in this case).