You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge bitcoin#30132: indexes: Don't wipe indexes again when continuing a prior reindex
f68cba2 blockman: Replace m_reindexing with m_blockfiles_indexed (Ryan Ofsky)
1b1c6dc test: Add functional test for continuing a reindex (TheCharlatan)
201c1a9 indexes: Don't wipe indexes again when already reindexing (TheCharlatan)
804f09d kernel: Add less confusing reindex options (Ryan Ofsky)
e172553 validation: Remove needs_init from LoadBlockIndex (TheCharlatan)
533eab7 bugfix: Streamline setting reindex option (TheCharlatan)
Pull request description:
When restarting `bitcoind` during an ongoing reindex without setting the `-reindex` flag again, the block and coins db is left intact, but any data from the optional indexes is discarded. While not a bug per se, wiping the data again is
wasteful, both in terms of having to write it again, as well as potentially leading to longer startup times. So keep the index data instead when continuing a prior reindex.
Also includes a bugfix and smaller code cleanups around the reindexing code. The bug was introduced in b47bd95: "kernel: De-globalize fReindex".
ACKs for top commit:
stickies-v:
ACK f68cba2
fjahr:
Code review ACK f68cba2
furszy:
Code review ACK f68cba2
ryanofsky:
Code review ACK f68cba2. Only changes since last review were cherry-picking suggested commits that rename variables, improving comments, and making some tweaks to test code.
Tree-SHA512: b252228cc76e9f1eaac56d5bd9e4eac23408e0fc04aeffd97a85417f046229364673ee1ca7410b9b6e7b692b03f13ece17c42a10176da0d7e975a8915deb98ca
0 commit comments