Do not allow blockfile pruning during reindex.

Also clarify startup message.

Github-Pull: #6856
Rebased-From: d3b09f6bac738958b6bf5711bcb5291049b7466d
This commit is contained in:
Alex Morcos
2015-10-19 14:43:04 -04:00
committed by Wladimir J. van der Laan
parent fc7f0ee28c
commit dfe55bdc32
2 changed files with 2 additions and 2 deletions

View File

@@ -2000,7 +2000,7 @@ bool static FlushStateToDisk(CValidationState &state, FlushStateMode mode) {
std::set<int> setFilesToPrune;
bool fFlushForPrune = false;
try {
if (fPruneMode && fCheckForPruning) {
if (fPruneMode && fCheckForPruning && !fReindex) {
FindFilesToPrune(setFilesToPrune);
fCheckForPruning = false;
if (!setFilesToPrune.empty()) {