File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ CWaitableCriticalSection csBestBlock;
66
66
CConditionVariable cvBlockChange;
67
67
int nScriptCheckThreads = 0 ;
68
68
std::atomic_bool fImporting (false );
69
- bool fReindex = false ;
69
+ std::atomic_bool fReindex ( false ) ;
70
70
bool fTxIndex = false ;
71
71
bool fHavePruned = false ;
72
72
bool fPruneMode = false ;
@@ -3523,7 +3523,7 @@ bool static LoadBlockIndexDB(const CChainParams& chainparams)
3523
3523
// Check whether we need to continue reindexing
3524
3524
bool fReindexing = false ;
3525
3525
pblocktree->ReadReindexing (fReindexing );
3526
- fReindex |= fReindexing ;
3526
+ if ( fReindexing ) fReindex = true ;
3527
3527
3528
3528
// Check whether we have a transaction index
3529
3529
pblocktree->ReadFlag (" txindex" , fTxIndex );
Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ extern const std::string strMessageMagic;
167
167
extern CWaitableCriticalSection csBestBlock;
168
168
extern CConditionVariable cvBlockChange;
169
169
extern std::atomic_bool fImporting ;
170
- extern bool fReindex ;
170
+ extern std::atomic_bool fReindex ;
171
171
extern int nScriptCheckThreads;
172
172
extern bool fTxIndex ;
173
173
extern bool fIsBareMultisigStd ;
You can’t perform that action at this time.
0 commit comments