diff options
author | Victor Chang <vfcc@google.com> | 2019-01-18 17:16:37 -0800 |
---|---|---|
committer | Victor Chang <vfcc@google.com> | 2019-03-20 13:56:40 -0700 |
commit | 5148bb2b921ee84709d3924aecbad69d77300aff (patch) | |
tree | afe91f4bdabbce45ab54ab2071156252dd39383c /dist/sqlite3.c | |
parent | 66b437d9071f9f8e21eef9d454e24bc6bd6c6093 (diff) |
[fuchsia] Add Fuchsia support to SQLite.
This enables basic database locking, but there are known weaknesses to this
approach. ie. If the process is killed before the *.lock file can be
deleted, then the database is perpetually locked.
Bug: 120103808
Test: Database locking works.
Merged-In: Iac54c5f76e167fef15b490522840d33808d4bc6c
Change-Id: Iac54c5f76e167fef15b490522840d33808d4bc6c
Diffstat (limited to 'dist/sqlite3.c')
-rw-r--r-- | dist/sqlite3.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/dist/sqlite3.c b/dist/sqlite3.c index 18b8246..1931481 100644 --- a/dist/sqlite3.c +++ b/dist/sqlite3.c @@ -38450,6 +38450,10 @@ SQLITE_API int sqlite3_os_init(void){ UNIXVFS("unix", autolockIoFinder ), #elif OS_VXWORKS UNIXVFS("unix", vxworksIoFinder ), +#elif __Fuchsia__ + /* None of the system calls for other exclusion methods are currently + ** implemented on Fuchsia, so use simple dot-file locking for now. */ + UNIXVFS("unix", dotlockIoFinder ), #else UNIXVFS("unix", posixIoFinder ), #endif |