On Mon, Mar 31, 2025 at 3:27 PM Melanie Plageman <melanieplage...@gmail.com> wrote: > > I think there might be another problem with the code. We only set > cur_database in the loop in autoprewarm_databas_main() when it is 0 > > if (cur_database != blk->database) > { > if (cur_database == 0) > cur_database = blk->database; > > I know that the read stream will return InvalidBlockNumber when we > move onto the next database, but I don't see how we will end up > actually stopping prewarming in autoprewarm_database_main() when we > move on to the next database.
Whoops, this isn't right. It does work. I'm going to draft a version suggesting slightly different variable naming and a couple comments to make this more clear. - Melanie