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

Commit0a208ed

Browse files
committed
Un-break s_lock_test.
Commit80abbeb evidently didn't bother checking this code.Also, list the generated executable in .gitignore (so it'sbeen a REALLY long time since anyone tried this).Noted while trying out RISC-V spinlock patch. Given thatthis has been broken for 5 years and nobody noticed, it'slikely not worth back-patching.
1 parentc32fcac commit0a208ed

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

‎src/backend/storage/lmgr/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/lwlocknames.c
22
/lwlocknames.h
3+
/s_lock_test

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ main()
368368
printf(" if S_LOCK() and TAS() are working.\n");
369369
fflush(stdout);
370370

371-
s_lock(&test_lock.lock,__FILE__,__LINE__);
371+
s_lock(&test_lock.lock,__FILE__,__LINE__,PG_FUNCNAME_MACRO);
372372

373373
printf("S_LOCK_TEST: failed, lock not locked\n");
374374
return1;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp