diff options
author | Floris Bos <bos@je-eigen-domein.nl> | 2014-09-11 17:43:32 +0200 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2014-09-13 23:51:59 +0200 |
commit | 3ede457c5e0e6ee2512a19482c2f6aaf7a0fc118 (patch) | |
tree | 6bf87899fc27d88b6e1a769bb9f893575d4c9915 /package/sqlite/Config.in | |
parent | 4288da4bb0f678829e7d24392831f086e5f22582 (diff) | |
download | buildroot-3ede457c5e0e6ee2512a19482c2f6aaf7a0fc118.tar.gz buildroot-3ede457c5e0e6ee2512a19482c2f6aaf7a0fc118.zip |
sqlite: add option to disable fsync
For use-cases in which performance is more important than data integrity.
Signed-off-by: Floris Bos <bos@je-eigen-domein.nl>
Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/sqlite/Config.in')
-rw-r--r-- | package/sqlite/Config.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/package/sqlite/Config.in b/package/sqlite/Config.in index fe6cc08967..7ea9eb15b8 100644 --- a/package/sqlite/Config.in +++ b/package/sqlite/Config.in @@ -53,4 +53,13 @@ config BR2_PACKAGE_SQLITE_SECURE_DELETE http://www.sqlite.org/pragma.html#pragma_secure_delete for additional information. +config BR2_PACKAGE_SQLITE_NO_SYNC + bool "Disable fsync" + help + By default SQLite forces all database transactions to storage + immediately using fsync() to protect against data loss in case + of power failure. + This option turns this behavior off resulting in higher performance + especially when using slow flash storage. + endif |