Re: [HACKERS] tablesync patch broke the assumption that logical repdepends on?

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: [HACKERS] tablesync patch broke the assumption that logical repdepends on?
Дата
Msg-id d42969ae-fac8-f116-2434-e7bce37f7ce1@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: [HACKERS] tablesync patch broke the assumption that logical repdepends on?  (Petr Jelinek <petr.jelinek@2ndquadrant.com>)
Ответы Re: [HACKERS] tablesync patch broke the assumption that logical repdepends on?
Список pgsql-hackers
On 4/20/17 14:29, Petr Jelinek wrote:
> +        /* Find unused worker slot. */
> +        if (!w->in_use)
>          {
> -            worker = &LogicalRepCtx->workers[slot];
> -            break;
> +            worker = w;
> +            slot = i;
> +        }

Doesn't this still need a break?  Otherwise it always picks the last slot.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Petr Jelinek
Дата:
Сообщение: Re: [HACKERS] Interval for launching the table sync worker
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: [HACKERS] tablesync patch broke the assumption that logical repdepends on?