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

Commit643dfb7

Browse files
committed
Fix some bogus comments.
1 parent966a4ca commit643dfb7

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*
1313
*
1414
* IDENTIFICATION
15-
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/deadlock.c,v 1.14 2002/10/03 19:17:55 tgl Exp $
15+
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/deadlock.c,v 1.15 2002/11/01 00:40:23 tgl Exp $
1616
*
1717
*Interface:
1818
*
@@ -172,6 +172,10 @@ InitDeadLockChecking(void)
172172
* only look at regular locks.
173173
*
174174
* We must have already locked the master lock before being called.
175+
* NOTE: although the lockmethod structure appears to allow each lock
176+
* table to have a different masterLock, all locks that can block had
177+
* better use the same LWLock, else this code will not be adequately
178+
* interlocked!
175179
*/
176180
bool
177181
DeadLockCheck(PGPROC*proc)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.117 2002/10/31 21:34:16 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.118 2002/11/01 00:40:23 tgl Exp $
1212
*
1313
* NOTES
1414
* Outside modules can create a lock table and acquire/release
@@ -255,7 +255,7 @@ LockMethodTableInit(char *tabName,
255255
/* This is just temp space in this routine, so palloc is OK. */
256256
shmemName= (char*)palloc(strlen(tabName)+32);
257257

258-
/* each lock table has anon-shared, permanent header */
258+
/* each lock table has aheader in shared memory */
259259
sprintf(shmemName,"%s (lock method table)",tabName);
260260
lockMethodTable= (LOCKMETHODTABLE*)
261261
ShmemInitStruct(shmemName,sizeof(LOCKMETHODTABLE),&found);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp