Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit a2ce321

Browse files
committed
PGPRO-646: Set need_repair before block_is_read
1 parent 1cb8cd3 commit a2ce321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/replication/walsender.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2036,8 +2036,8 @@ ProcessStandbyRepairBlockMessage(void)
20362036
pg_write_barrier();
20372037

20382038
/* Send signal to backend that block is in shared memory */
2039-
RprBlockState->block_is_read = true;
20402039
RprBlockState->need_repair = false;
2040+
RprBlockState->block_is_read = true;
20412041
SetLatch(RprBlockState->backendLatch);
20422042

20432043
/* Set flag that walsenders are ready to repair another block */

0 commit comments

Comments
 (0)