pgsql: Fix minor bug in logical-replication walsender shutdown

2019-10-17 Thread Alvaro Herrera
Fix minor bug in logical-replication walsender shutdown Logical walsender should exit when it catches up with sending WAL during shutdown; but there was a rare corner case when it failed to because of a race condition that puts it back to wait for more WAL instead -- but since there wasn't any, it

pgsql: Fix minor bug in logical-replication walsender shutdown

2019-10-17 Thread Alvaro Herrera
Fix minor bug in logical-replication walsender shutdown Logical walsender should exit when it catches up with sending WAL during shutdown; but there was a rare corner case when it failed to because of a race condition that puts it back to wait for more WAL instead -- but since there wasn't any, it

pgsql: Fix minor bug in logical-replication walsender shutdown

2019-10-17 Thread Alvaro Herrera
Fix minor bug in logical-replication walsender shutdown Logical walsender should exit when it catches up with sending WAL during shutdown; but there was a rare corner case when it failed to because of a race condition that puts it back to wait for more WAL instead -- but since there wasn't any, it

pgsql: Fix minor bug in logical-replication walsender shutdown

2019-10-17 Thread Alvaro Herrera
Fix minor bug in logical-replication walsender shutdown Logical walsender should exit when it catches up with sending WAL during shutdown; but there was a rare corner case when it failed to because of a race condition that puts it back to wait for more WAL instead -- but since there wasn't any, it

pgsql: Fix minor bug in logical-replication walsender shutdown

2019-10-17 Thread Alvaro Herrera
Fix minor bug in logical-replication walsender shutdown Logical walsender should exit when it catches up with sending WAL during shutdown; but there was a rare corner case when it failed to because of a race condition that puts it back to wait for more WAL instead -- but since there wasn't any, it

pgsql: Fix minor bug in logical-replication walsender shutdown

2019-10-17 Thread Alvaro Herrera
Fix minor bug in logical-replication walsender shutdown Logical walsender should exit when it catches up with sending WAL during shutdown; but there was a rare corner case when it failed to because of a race condition that puts it back to wait for more WAL instead -- but since there wasn't any, it

pgsql: Fix minor bug in logical-replication walsender shutdown

2019-10-17 Thread Alvaro Herrera
Fix minor bug in logical-replication walsender shutdown Logical walsender should exit when it catches up with sending WAL during shutdown; but there was a rare corner case when it failed to because of a race condition that puts it back to wait for more WAL instead -- but since there wasn't any, it