Skip to content

Commit daa5a65

Browse files
committed
refactor: rename BCLog::BLOCKSTORE to BLOCKSTORAGE
so the enum name is the same as its value, like the other BCLog enums.
1 parent cf622b2 commit daa5a65

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/logging.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ const CLogCategoryDesc LogCategories[] =
179179
{BCLog::LOCK, "lock"},
180180
#endif
181181
{BCLog::UTIL, "util"},
182-
{BCLog::BLOCKSTORE, "blockstorage"},
182+
{BCLog::BLOCKSTORAGE, "blockstorage"},
183183
{BCLog::TXRECONCILIATION, "txreconciliation"},
184184
{BCLog::SCAN, "scan"},
185185
{BCLog::ALL, "1"},
@@ -280,7 +280,7 @@ std::string LogCategoryToStr(BCLog::LogFlags category)
280280
#endif
281281
case BCLog::LogFlags::UTIL:
282282
return "util";
283-
case BCLog::LogFlags::BLOCKSTORE:
283+
case BCLog::LogFlags::BLOCKSTORAGE:
284284
return "blockstorage";
285285
case BCLog::LogFlags::TXRECONCILIATION:
286286
return "txreconciliation";

src/logging.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ namespace BCLog {
6565
LOCK = (1 << 24),
6666
#endif
6767
UTIL = (1 << 25),
68-
BLOCKSTORE = (1 << 26),
68+
BLOCKSTORAGE = (1 << 26),
6969
TXRECONCILIATION = (1 << 27),
7070
SCAN = (1 << 28),
7171
ALL = ~(uint32_t)0,

src/node/blockstorage.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ void BlockManager::UnlinkPrunedFiles(const std::set<int>& setFilesToPrune) const
573573
const bool removed_blockfile{fs::remove(BlockFileSeq().FileName(pos), ec)};
574574
const bool removed_undofile{fs::remove(UndoFileSeq().FileName(pos), ec)};
575575
if (removed_blockfile || removed_undofile) {
576-
LogPrint(BCLog::BLOCKSTORE, "Prune: %s deleted blk/rev (%05u)\n", __func__, *it);
576+
LogPrint(BCLog::BLOCKSTORAGE, "Prune: %s deleted blk/rev (%05u)\n", __func__, *it);
577577
}
578578
}
579579
}
@@ -642,7 +642,7 @@ bool BlockManager::FindBlockPos(FlatFilePos& pos, unsigned int nAddSize, unsigne
642642

643643
if ((int)nFile != m_last_blockfile) {
644644
if (!fKnown) {
645-
LogPrint(BCLog::BLOCKSTORE, "Leaving block file %i: %s\n", m_last_blockfile, m_blockfile_info[m_last_blockfile].ToString());
645+
LogPrint(BCLog::BLOCKSTORAGE, "Leaving block file %i: %s\n", m_last_blockfile, m_blockfile_info[m_last_blockfile].ToString());
646646
}
647647
FlushBlockFile(!fKnown, finalize_undo);
648648
m_last_blockfile = nFile;

0 commit comments

Comments
 (0)