Skip to content

Commit 677e791

Browse files
committed
[PGPRO-5360] Fix for freeze (Valgrind and compilation with -Og option)
1 parent afddc65 commit 677e791

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pathman_workers.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -458,8 +458,8 @@ bgw_main_concurrent_part(Datum main_arg)
458458
ConcurrentPartSlot *part_slot;
459459
char *sql = NULL;
460460
int64 rows;
461-
bool failed;
462-
int failures_count = 0;
461+
volatile bool failed;
462+
volatile int failures_count = 0;
463463
LOCKMODE lockmode = RowExclusiveLock;
464464

465465
/* Update concurrent part slot */
@@ -497,7 +497,7 @@ bgw_main_concurrent_part(Datum main_arg)
497497
Oid types[2] = { OIDOID, INT4OID };
498498
Datum vals[2] = { part_slot->relid, part_slot->batch_size };
499499

500-
bool rel_locked = false;
500+
volatile bool rel_locked = false;
501501

502502
/* Reset loop variables */
503503
failed = false;

0 commit comments

Comments
 (0)