mirror of
https://github.com/Zygo/bees.git
synced 2025-05-18 05:45:45 +02:00
crawl: put the current crawl state in the thread status
It's more useful than a generic "waiting for thread limit" status Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
parent
4f9c2c0310
commit
920cfbc1f6
@ -556,7 +556,7 @@ BeesCrawl::crawl_thread()
|
|||||||
{
|
{
|
||||||
Timer crawl_timer;
|
Timer crawl_timer;
|
||||||
while (!m_stopped) {
|
while (!m_stopped) {
|
||||||
BEESNOTE("waiting for crawl thread limit");
|
BEESNOTE("waiting for crawl thread limit " << m_state);
|
||||||
LockSet<uint64_t>::Lock crawl_lock(m_ctx->roots()->lock_set(), m_state.m_root);
|
LockSet<uint64_t>::Lock crawl_lock(m_ctx->roots()->lock_set(), m_state.m_root);
|
||||||
auto this_range = pop_front();
|
auto this_range = pop_front();
|
||||||
if (this_range) {
|
if (this_range) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user