diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-01-31 12:58:08 +0000 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-01-31 12:58:08 +0000 |
| commit | 8b3539bc11639f2feaebdbb2fcbc9578806f5702 (patch) | |
| tree | 527b7c22dee975a89cfd8ef245f650930ec13067 /tests/unit_tests | |
| parent | b91fc2dc3c4489f44a74915ae80fd1968d150302 (diff) | |
| download | monzero-core-8b3539bc11639f2feaebdbb2fcbc9578806f5702.tar.gz monzero-core-8b3539bc11639f2feaebdbb2fcbc9578806f5702.tar.xz monzero-core-8b3539bc11639f2feaebdbb2fcbc9578806f5702.zip | |
core: prevent the database from being used by multiple daemons
A boost lock is used to determine whether more than one process
wants to access the database. The boost file_lock doesn't seem
to like locking directories, so we use an arbitrary file in it.
This allows to still run two daemons if they have different
database directories (ie, LMDB/BDB, different data directories).
Diffstat (limited to 'tests/unit_tests')
0 files changed, 0 insertions, 0 deletions
