7
7
*
8
8
*
9
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.27 1998/06/15 19:29:20 momjian Exp $
10
+ * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.28 1998/06/26 01:58:45 momjian Exp $
11
11
*
12
12
* NOTES
13
13
* Outside modules can create a lock table and acquire/release
18
18
*
19
19
* Interface:
20
20
*
21
- * LockAcquire(), LockRelease(), LockTabInit ().
21
+ * LockAcquire(), LockRelease(), LockTableInit ().
22
22
*
23
23
* LockReplace() is called only within this module and by the
24
24
* lkchain module. It releases a lock without looking
@@ -213,7 +213,7 @@ LockTypeInit(LOCKTAB *ltable,
213
213
}
214
214
215
215
/*
216
- * LockTabInit -- initialize a lock table structure
216
+ * LockTableInit -- initialize a lock table structure
217
217
*
218
218
* Notes:
219
219
* (a) a lock table has four separate entries in the binding
@@ -223,7 +223,7 @@ LockTypeInit(LOCKTAB *ltable,
223
223
*
224
224
*/
225
225
LockTableId
226
- LockTabInit (char * tabName ,
226
+ LockTableInit (char * tabName ,
227
227
MASK * conflictsP ,
228
228
int * prioP ,
229
229
int ntypes )
@@ -237,15 +237,15 @@ LockTabInit(char *tabName,
237
237
238
238
if (ntypes > MAX_LOCKTYPES )
239
239
{
240
- elog (NOTICE , "LockTabInit : too many lock types %d greater than %d" ,
240
+ elog (NOTICE , "LockTableInit : too many lock types %d greater than %d" ,
241
241
ntypes , MAX_LOCKTYPES );
242
242
return (INVALID_TABLEID );
243
243
}
244
244
245
245
if (NumTables > MAX_TABLES )
246
246
{
247
247
elog (NOTICE ,
248
- "LockTabInit : system limit of MAX_TABLES (%d) lock tables" ,
248
+ "LockTableInit : system limit of MAX_TABLES (%d) lock tables" ,
249
249
MAX_TABLES );
250
250
return (INVALID_TABLEID );
251
251
}
@@ -254,15 +254,15 @@ LockTabInit(char *tabName,
254
254
shmemName = (char * ) palloc ((unsigned ) (strlen (tabName ) + 32 ));
255
255
if (!shmemName )
256
256
{
257
- elog (NOTICE , "LockTabInit : couldn't malloc string %s \n" , tabName );
257
+ elog (NOTICE , "LockTableInit : couldn't malloc string %s \n" , tabName );
258
258
return (INVALID_TABLEID );
259
259
}
260
260
261
261
/* each lock table has a non-shared header */
262
262
ltable = (LOCKTAB * ) palloc ((unsigned ) sizeof (LOCKTAB ));
263
263
if (!ltable )
264
264
{
265
- elog (NOTICE , "LockTabInit : couldn't malloc lock table %s\n" , tabName );
265
+ elog (NOTICE , "LockTableInit : couldn't malloc lock table %s\n" , tabName );
266
266
pfree (shmemName );
267
267
return (INVALID_TABLEID );
268
268
}
@@ -285,7 +285,7 @@ LockTabInit(char *tabName,
285
285
286
286
if (!ltable -> ctl )
287
287
{
288
- elog (FATAL , "LockTabInit : couldn't initialize %s" , tabName );
288
+ elog (FATAL , "LockTableInit : couldn't initialize %s" , tabName );
289
289
status = FALSE;
290
290
}
291
291
@@ -326,7 +326,7 @@ LockTabInit(char *tabName,
326
326
Assert (ltable -> lockHash -> hash == tag_hash );
327
327
if (!ltable -> lockHash )
328
328
{
329
- elog (FATAL , "LockTabInit : couldn't initialize %s" , tabName );
329
+ elog (FATAL , "LockTableInit : couldn't initialize %s" , tabName );
330
330
status = FALSE;
331
331
}
332
332
@@ -347,7 +347,7 @@ LockTabInit(char *tabName,
347
347
348
348
if (!ltable -> xidHash )
349
349
{
350
- elog (FATAL , "LockTabInit : couldn't initialize %s" , tabName );
350
+ elog (FATAL , "LockTableInit : couldn't initialize %s" , tabName );
351
351
status = FALSE;
352
352
}
353
353
@@ -365,7 +365,7 @@ LockTabInit(char *tabName,
365
365
}
366
366
367
367
/*
368
- * LockTabRename -- allocate another tableId to the same
368
+ * LockTableRename -- allocate another tableId to the same
369
369
* lock table.
370
370
*
371
371
* NOTES: Both the lock module and the lock chain (lchain.c)
@@ -378,7 +378,7 @@ LockTabInit(char *tabName,
378
378
*/
379
379
#ifdef NOT_USED
380
380
LockTableId
381
- LockTabRename (LockTableId tableId )
381
+ LockTableRename (LockTableId tableId )
382
382
{
383
383
LockTableId newTableId ;
384
384
0 commit comments