Skip to content

Commit 6e0f5bb

Browse files
committed
PGPRO-427: Process blocks change in parallel
1 parent b97e9e8 commit 6e0f5bb

File tree

7 files changed

+382
-229
lines changed

7 files changed

+382
-229
lines changed

src/backup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2344,7 +2344,7 @@ process_block_change(ForkNumber forknum, RelFileNode rnode, BlockNumber blkno)
23442344
{
23452345
/* We need critical section only we use more than one threads */
23462346
if (num_threads > 1)
2347-
pthread_mutex_lock(&backup_pagemap_mutex);
2347+
pthread_lock(&backup_pagemap_mutex);
23482348

23492349
datapagemap_add(&(*file_item)->pagemap, blkno_inseg);
23502350

0 commit comments

Comments
 (0)