1
0
mirror of https://github.com/Zygo/bees.git synced 2025-05-17 21:35:45 +02:00

roots: improve thread status tracking messages

Don't dereference a shared_ptr inside a thread status function.

Do trace the crawl start events.

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
Zygo Blaxell 2021-11-29 00:29:16 -05:00
parent d725f3c66c
commit 82c2b5bafe

View File

@ -408,6 +408,8 @@ BeesRoots::crawl_roots()
}
// Now we insert some number of crawl batches into the task queue
BEESNOTE("Scanning roots in " << scan_mode_ntoa(m_scan_mode) << " mode");
BEESTRACE("scanning roots in " << scan_mode_ntoa(m_scan_mode) << " mode");
switch (m_scan_mode) {
case SCAN_MODE_LOCKSTEP: {
@ -1124,7 +1126,7 @@ BeesCrawl::fetch_extents()
// We immediately defer further crawling on this subvol.
// We track max_transid if the subvol scan has never started.
// We postpone the started timestamp since we haven't started.
auto crawl_state = get_state_end();
auto crawl_state = old_state;
if (crawl_state.m_objectid == 0) {
// This will keep the max_transid up to date so if the root
// is ever switched back to read-write, it won't trigger big
@ -1146,7 +1148,7 @@ BeesCrawl::fetch_extents()
return false;
}
BEESNOTE("crawling " << get_state_end());
BEESNOTE("crawling " << old_state);
// Find an extent data item in this subvol in the transid range
BEESTRACE("looking for new objects " << old_state);