From f75a7c924e208a7d7d5da7a9355ac6caa1207c3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Wo=CC=81jcik?= <3044353+pwojcikdev@users.noreply.github.com> Date: Mon, 6 Nov 2023 17:16:55 +0100 Subject: [PATCH] Periodically refresh read transaction in `backlog_population` --- nano/node/backlog_population.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nano/node/backlog_population.cpp b/nano/node/backlog_population.cpp index 0aac0b0392..6b2a45156e 100644 --- a/nano/node/backlog_population.cpp +++ b/nano/node/backlog_population.cpp @@ -95,6 +95,8 @@ void nano::backlog_population::populate_backlog (nano::unique_lock auto const end = store.account.end (); for (; i != end && count < chunk_size; ++i, ++count, ++total) { + transaction.refresh_if_needed (); + stats.inc (nano::stat::type::backlog, nano::stat::detail::total); auto const & account = i->first;