From: Zygo Blaxell Date: Thu, 19 Jun 2025 02:40:31 +0000 (-0400) Subject: progress: base progress estimates on queued extents, not completed ones X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b8b7557b6d0385223d6b9b2a1258d505e8bff1f;p=bees progress: base progress estimates on queued extents, not completed ones This means the progress table in the status output reflects the state of the oldest task in the queue, not the newest. Signed-off-by: Zygo Blaxell --- diff --git a/src/bees-roots.cc b/src/bees-roots.cc index 79e549aa..39ade707 100644 --- a/src/bees-roots.cc +++ b/src/bees-roots.cc @@ -1305,8 +1305,8 @@ BeesScanModeExtent::next_transid() const auto this_crawl = found->second->crawl(); THROW_CHECK1(runtime_error, subvol, this_crawl); - // Get the last _completed_ state - const auto this_state = this_crawl->get_state_begin(); + // Get the last _queued_ state + const auto this_state = this_crawl->get_state_end(); auto bytenr = this_state.m_objectid; const auto bg_found = bg_info_map.lower_bound(bytenr);