Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite980ec7

Browse files
committed
Mark FastPathStrongRelationLocks volatile.
Otherwise, the compiler might decide to move modifications to datawithin this structure outside the enclosing SpinLockAcquire /SpinLockRelease pair, leading to shared memory corruption.This may or may not explain a recent lmgr-related buildfarm failureon prairiedog, but it needs to be fixed either way.
1 parent6a63dda commite980ec7

File tree

1 file changed

+1
-1
lines changed
  • src/backend/storage/lmgr

1 file changed

+1
-1
lines changed

‎src/backend/storage/lmgr/lock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ typedef struct
237237
uint32count[FAST_PATH_STRONG_LOCK_HASH_PARTITIONS];
238238
}FastPathStrongRelationLockData;
239239

240-
FastPathStrongRelationLockData*FastPathStrongRelationLocks;
240+
volatileFastPathStrongRelationLockData*FastPathStrongRelationLocks;
241241

242242

243243
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp