1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-03-03 15:42:18 +02:00

Do not wait for the next segment

This commit is contained in:
Arthur Zakirov 2019-04-10 17:02:00 +03:00
parent 1ff905989e
commit bc52046ac6

View File

@ -1191,8 +1191,8 @@ XLogThreadWorker(void *arg)
* Consider thread_arg->endSegNo and thread_arg->endpoint only if
* they are valid.
*/
xlogreader->ReadRecPtr == thread_arg->endpoint &&
nextSegNo > thread_arg->endSegNo)
xlogreader->ReadRecPtr >= thread_arg->endpoint &&
nextSegNo >= thread_arg->endSegNo)
break;
}