mirror of
https://github.com/postgres/postgres.git
synced 2025-05-21 15:54:08 +03:00
Mark FastPathStrongRelationLocks volatile.
Otherwise, the compiler might decide to move modifications to data within this structure outside the enclosing SpinLockAcquire / SpinLockRelease pair, leading to shared memory corruption. This may or may not explain a recent lmgr-related buildfarm failure on prairiedog, but it needs to be fixed either way.
This commit is contained in:
parent
6a63dda4c2
commit
e980ec7c80
@ -237,7 +237,7 @@ typedef struct
|
|||||||
uint32 count[FAST_PATH_STRONG_LOCK_HASH_PARTITIONS];
|
uint32 count[FAST_PATH_STRONG_LOCK_HASH_PARTITIONS];
|
||||||
} FastPathStrongRelationLockData;
|
} FastPathStrongRelationLockData;
|
||||||
|
|
||||||
FastPathStrongRelationLockData *FastPathStrongRelationLocks;
|
volatile FastPathStrongRelationLockData *FastPathStrongRelationLocks;
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user