Skip to content

Commit 0a208ed

Browse files
committed
Un-break s_lock_test.
Commit 80abbeb evidently didn't bother checking this code. Also, list the generated executable in .gitignore (so it's been a REALLY long time since anyone tried this). Noted while trying out RISC-V spinlock patch. Given that this has been broken for 5 years and nobody noticed, it's likely not worth back-patching.
1 parent c32fcac commit 0a208ed

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
return 1;

0 commit comments

Comments
 (0)