[Tarantool-patches] [PATCH] relay: yield explicitly every N sent rows
Cyrill Gorcunov
gorcunov at gmail.com
Fri Feb 12 14:46:34 MSK 2021
On Fri, Feb 12, 2021 at 02:37:48PM +0300, Cyrill Gorcunov wrote:
>
> Serge, if I'm not missing something obvious, this row counter is
> related to xstream->rows? So maybe define this type as size_t instead,
> to be consistent with another occurence of WAL_ROWS_PER_YIELD. Say,
>
> static size_t row_cnt = 0;
> ...
> if (++row_cnt % WAL_ROWS_PER_YIELD == 0)
> fiber_sleep(0);
>
> I'm fine with uint64_t as well, just out of curiosity.
Ack for current version as well
Cyrill
More information about the Tarantool-patches
mailing list