diff options
Diffstat (limited to 'src/backend/replication/logical/logical.c')
-rw-r--r-- | src/backend/replication/logical/logical.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/backend/replication/logical/logical.c b/src/backend/replication/logical/logical.c index 9eb5cd5ee4d..49f9c7d3a57 100644 --- a/src/backend/replication/logical/logical.c +++ b/src/backend/replication/logical/logical.c @@ -451,11 +451,6 @@ DecodingContextFindStartpoint(LogicalDecodingContext *ctx) XLogRecord *record; char *err = NULL; - /* - * If the caller requires that interrupts be checked, the read_page - * callback should do so, as those will often wait. - */ - /* the read_page callback waits for new WAL */ record = XLogReadRecord(ctx->reader, startptr, &err); if (err) @@ -470,6 +465,8 @@ DecodingContextFindStartpoint(LogicalDecodingContext *ctx) /* only continue till we found a consistent spot */ if (DecodingContextReady(ctx)) break; + + CHECK_FOR_INTERRUPTS(); } ctx->slot->data.confirmed_flush = ctx->reader->EndRecPtr; |