1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-20 11:11:03 -04:00

Update src/libstore/local-store.hh

Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
This commit is contained in:
Ben Radford 2023-06-19 14:07:31 +01:00 committed by GitHub
parent b09baa3bc3
commit ba492a98ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,10 +56,11 @@ struct LocalStoreConfig : virtual LocalFSStoreConfig
Enable read-only mode to disable locking and open the SQLite database with the [`immutable` parameter](https://www.sqlite.org/c3ref/open.html) set. Enable read-only mode to disable locking and open the SQLite database with the [`immutable` parameter](https://www.sqlite.org/c3ref/open.html) set.
**Warning** > **Warning**
Do not use this unless the filesystem is read-only. > Do not use this unless the filesystem is read-only.
Using it when the filesystem is writable can cause incorrect query results or corruption errors if the database is changed by another process. >
While the filesystem the database resides on might appear to be read-only, consider whether another user or system might have write access to it. > Using it when the filesystem is writable can cause incorrect query results or corruption errors if the database is changed by another process.
> While the filesystem the database resides on might appear to be read-only, consider whether another user or system might have write access to it.
)"}; )"};
const std::string name() override { return "Local Store"; } const std::string name() override { return "Local Store"; }