@@ -906,19 +906,19 @@ bool BlockManager::FindBlockPos(FlatFilePos& pos, unsigned int nAddSize, unsigne
906906 if (!fKnown ) {
907907 LogPrint (BCLog::BLOCKSTORAGE, " Leaving block file %i: %s (onto %i) (height %i)\n " ,
908908 last_blockfile, m_blockfile_info[last_blockfile].ToString (), nFile, nHeight);
909- }
910909
911- // Do not propagate the return code. The flush concerns a previous block
912- // and undo file that has already been written to. If a flush fails
913- // here, and we crash, there is no expected additional block data
914- // inconsistency arising from the flush failure here. However, the undo
915- // data may be inconsistent after a crash if the flush is called during
916- // a reindex. A flush error might also leave some of the data files
917- // untrimmed.
918- if (!FlushBlockFile (last_blockfile, !fKnown , finalize_undo)) {
919- LogPrintLevel (BCLog::BLOCKSTORAGE, BCLog::Level::Warning,
920- " Failed to flush previous block file %05i (finalize=%i, finalize_undo=%i) before opening new block file %05i\n " ,
921- last_blockfile, !fKnown , finalize_undo, nFile);
910+ // Do not propagate the return code. The flush concerns a previous block
911+ // and undo file that has already been written to. If a flush fails
912+ // here, and we crash, there is no expected additional block data
913+ // inconsistency arising from the flush failure here. However, the undo
914+ // data may be inconsistent after a crash if the flush is called during
915+ // a reindex. A flush error might also leave some of the data files
916+ // untrimmed.
917+ if (!FlushBlockFile (last_blockfile, !fKnown , finalize_undo)) {
918+ LogPrintLevel (BCLog::BLOCKSTORAGE, BCLog::Level::Warning,
919+ " Failed to flush previous block file %05i (finalize=%i, finalize_undo=%i) before opening new block file %05i\n " ,
920+ last_blockfile, !fKnown , finalize_undo, nFile);
921+ }
922922 }
923923 // No undo data yet in the new file, so reset our undo-height tracking.
924924 m_blockfile_cursors[chain_type] = BlockfileCursor{nFile};
0 commit comments