mirror of
				https://github.com/Zygo/bees.git
				synced 2025-11-04 04:00:36 +01:00 
			
		
		
		
	crawl: make logging less verbose
Silence the three(!) log messages per crawl increment an extra one at the end of the subvol. The three critical messages per subvol crawl cycle are: Next transid in BeesCrawlState <SUBVOL>:0 offset 0x0 transid <A>..<B> started <T> (<AGO>s ago) Subvol has been completely scanned and a new transaction range will be created. CrawlState is the state of the old subvol. Restarted crawl BeesCrawlState <SUBVOL>:0 offset 0x0 transid <B>..<C> started <T+AGO> (0s ago) Subvol has been restarted. CRawlState is the state of the new subvol. Deferring next transid in BeesCrawlState <SUBVOL>:0 offset 0x0 transid <B>..<C> started <T+AGO> (0s ago) Subvol has been completely scanned, but it is too soon to start a new scan. Fix the "Restart..." message to use the correct verb tense and to use the correct BeesCrawlState data. Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
		@@ -720,9 +720,9 @@ BeesCrawl::next_transid()
 | 
			
		||||
	crawl_state.m_objectid = 0;
 | 
			
		||||
	crawl_state.m_offset = 0;
 | 
			
		||||
	crawl_state.m_started = current_time;
 | 
			
		||||
	BEESLOGINFO("Restarting crawl " << get_state());
 | 
			
		||||
	BEESCOUNT(crawl_restart);
 | 
			
		||||
	set_state(crawl_state);
 | 
			
		||||
	BEESLOGINFO("Restarted crawl " << get_state());
 | 
			
		||||
	return true;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -738,7 +738,7 @@ BeesCrawl::fetch_extents()
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	BEESNOTE("crawling " << get_state());
 | 
			
		||||
	BEESLOGINFO("Crawling " << get_state());
 | 
			
		||||
	// BEESLOGINFO("Crawling " << get_state());
 | 
			
		||||
 | 
			
		||||
	Timer crawl_timer;
 | 
			
		||||
 | 
			
		||||
@@ -773,11 +773,11 @@ BeesCrawl::fetch_extents()
 | 
			
		||||
 | 
			
		||||
	if (!ioctl_ok || sk.m_result.empty()) {
 | 
			
		||||
		BEESCOUNT(crawl_empty);
 | 
			
		||||
		BEESLOGINFO("Crawl empty " << get_state());
 | 
			
		||||
		// BEESLOGINFO("Crawl empty " << get_state());
 | 
			
		||||
		return next_transid();
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	BEESLOGINFO("Crawling " << sk.m_result.size() << " results from " << get_state());
 | 
			
		||||
	// BEESLOGINFO("Crawling " << sk.m_result.size() << " results from " << get_state());
 | 
			
		||||
	auto results_left = sk.m_result.size();
 | 
			
		||||
	BEESNOTE("crawling " << results_left << " results from " << get_state());
 | 
			
		||||
	size_t count_other = 0;
 | 
			
		||||
@@ -873,7 +873,7 @@ BeesCrawl::fetch_extents()
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	BEESLOGINFO("Crawled inline " << count_inline << " data " << count_data << " other " << count_other << " unknown " << count_unknown << " gen_low " << count_low << " gen_high " << count_high << " " << get_state() << " in " << crawl_timer << "s");
 | 
			
		||||
	// BEESLOGINFO("Crawled inline " << count_inline << " data " << count_data << " other " << count_other << " unknown " << count_unknown << " gen_low " << count_low << " gen_high " << count_high << " " << get_state() << " in " << crawl_timer << "s");
 | 
			
		||||
 | 
			
		||||
	return true;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user