On Mon, Oct 21, 2024 at 4:49 PM Andrei Borodin <x4mmm@yandex-team.ru> wrote:
>
> 21.10.2024, 22:34, "Melanie Plageman" <melanieplageman@gmail.com>:
>
> The whole point of the read stream callback provided by the caller is
> that the logic to get the next block should be there
>
> We must get number of blocks after examining last block. But callback returning EOF might be called before. With
currentAPI we have to restart.
>
> Removing extension lock will not change this.
I was suggesting you call RelationGetNumberOfBlocks() once
current_block == last_exclusive in the callback itself.
- Melanie