diff options
author | fanquake <fanquake@gmail.com> | 2020-01-22 17:30:00 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2020-01-22 17:42:27 +0800 |
commit | a51aa2880d123fc0bcbc0ccd930dbf98e4d29863 (patch) | |
tree | 6125ea9e2685ec369a1f352600461b9a31a6f17e /contrib/gitian-descriptors/gitian-osx.yml | |
parent | e45463a06abef44e9fff0f9bb19435283fd568df (diff) | |
parent | 9dd58ca611f6f2b59c25d727a4e955333525d345 (diff) |
Merge #17897: init: Stop indexes on shutdown after ChainStateFlushed callback.
9dd58ca611f6f2b59c25d727a4e955333525d345 init: Stop indexes on shutdown after ChainStateFlushed callback. (Jim Posen)
Pull request description:
Replaces https://github.com/bitcoin/bitcoin/pull/17852.
Currently, the latest index state may not be committed to disk on shutdown. The state is committed on `ChainStateFlushed` callbacks and the current init order unregisters the indexes as validation interfaces before the final `ChainStateFlushed` callback is called on them.
Issue identified by paulyc.
For review: an alternative or supplemental solution would be to call `Commit` at the end of `BaseIndex::Stop`. I don't see any harm in doing so and it makes the less prone to user error. However, the destructor would have to be modified to not call `Stop` because `Commit` calls a virtual method, so I figured it wasn't worth it. But I'm curious how others feel.
ACKs for top commit:
fjahr:
tested ACK 9dd58ca611f6f2b59c25d727a4e955333525d345
paulyc:
> Code review ACK [9dd58ca](https://github.com/bitcoin/bitcoin/commit/9dd58ca611f6f2b59c25d727a4e955333525d345), but failed to test because I can't reproduce the original problem.
kallewoof:
Tested ACK 9dd58ca611f6f2b59c25d727a4e955333525d345
promag:
Code review ACK 9dd58ca611f6f2b59c25d727a4e955333525d345, but failed to test because I can't reproduce the original problem.
Tree-SHA512: 2918380b699833cb7eab07456d1667dbf8ebbe2d2b5988300a3cf5b6a6cfc818b6d9086e1936ffe7881f67e409306c4b91d61a08a169cfd0a301383479d4f3cb
Diffstat (limited to 'contrib/gitian-descriptors/gitian-osx.yml')
0 files changed, 0 insertions, 0 deletions