diff options
| author | Kaz Wesley <[email protected]> | 2016-04-27 09:26:33 -0700 |
|---|---|---|
| committer | Kaz Wesley <[email protected]> | 2016-04-27 09:41:13 -0700 |
| commit | f4ac02ee7c6530c273503d8575a492e9b2ac1f13 (patch) | |
| tree | f08df71bcdb9821bca7674739f02929f3b69849b /src/test/txvalidationcache_tests.cpp | |
| parent | Merge #7954: build: quiet annoying warnings without adding new ones (diff) | |
| download | discoin-f4ac02ee7c6530c273503d8575a492e9b2ac1f13.tar.xz discoin-f4ac02ee7c6530c273503d8575a492e9b2ac1f13.zip | |
fix race that could fail to persist a ban
DumpBanList currently does this:
- with lock: take a copy of the banmap
- perform I/O (write out the banmap)
- with lock: mark the banmap non-dirty
If a new ban is added during the I/O operation, it may never be persisted to
disk.
Reorder operations so that the data to be persisted cannot be older than the
time at which the banmap was marked non-dirty.
Diffstat (limited to 'src/test/txvalidationcache_tests.cpp')
0 files changed, 0 insertions, 0 deletions