diff options
author | Matthew Heon <matthew.heon@gmail.com> | 2018-07-25 10:43:28 -0400 |
---|---|---|
committer | Matthew Heon <matthew.heon@gmail.com> | 2018-07-25 11:37:15 -0400 |
commit | 42bd9d3880d4cdffe14c5021f7fb571ff5f6e77a (patch) | |
tree | 0323bd38529a528f45db6882d661b92da43fba2d /vendor.conf | |
parent | c90b7400a8b9ffc77de69ad3aae1754ac006ba21 (diff) | |
download | podman-42bd9d3880d4cdffe14c5021f7fb571ff5f6e77a.tar.gz podman-42bd9d3880d4cdffe14c5021f7fb571ff5f6e77a.tar.bz2 podman-42bd9d3880d4cdffe14c5021f7fb571ff5f6e77a.zip |
Add a mutex to BoltDB state to prevent lock issues
Per https://www.sqlite.org/src/artifact/c230a7a24?ln=994-1081,
POSIX file advisory locks are unsafe to use within a single
process if multiple file descriptors are open for the same file.
Unfortunately, this has a strong potential to happen for
multithreaded usage of libpod, and could result in DB corruption.
To prevent this, wrap all access to BoltDB within a single
libpod instance in a mutex to ensure concurrent access cannot
occur.
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Diffstat (limited to 'vendor.conf')
0 files changed, 0 insertions, 0 deletions