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

Commitc91b8bc

Browse files
committed
Cosmetic fixes from Neil Conway.
1 parentc0edc53 commitc91b8bc

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

‎src/backend/commands/prepare.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Copyright (c) 2002, PostgreSQL Global Development Group
77
*
88
* IDENTIFICATION
9-
* $Header: /cvsroot/pgsql/src/backend/commands/prepare.c,v 1.2 2002/09/04 20:31:15 momjian Exp $
9+
* $Header: /cvsroot/pgsql/src/backend/commands/prepare.c,v 1.3 2002/09/14 19:59:20 tgl Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -248,7 +248,7 @@ StoreQuery(const char *stmt_name, List *query_list, List *plan_list,
248248
elog(ERROR,"Prepared statement with name \"%s\" already exists",
249249
stmt_name);
250250

251-
/*Okay.Make a permanent memory context for the hashtable entry */
251+
/* Make a permanent memory context for the hashtable entry */
252252
entrycxt=AllocSetContextCreate(TopMemoryContext,
253253
stmt_name,
254254
1024,
@@ -399,8 +399,8 @@ DeallocateQuery(DeallocateStmt *stmt)
399399
stmt->name);
400400

401401
/* Flush the context holding the subsidiary data */
402-
if(MemoryContextIsValid(entry->context))
403-
MemoryContextDelete(entry->context);
402+
Assert(MemoryContextIsValid(entry->context));
403+
MemoryContextDelete(entry->context);
404404

405405
/* Now we can remove the hash table entry */
406406
hash_search(prepared_queries,key,HASH_REMOVE,NULL);

‎src/backend/storage/buffer/bufmgr.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/buffer/bufmgr.c,v 1.132 2002/09/04 20:31:25 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.133 2002/09/14 19:59:20 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -316,7 +316,7 @@ BufferAlloc(Relation reln,
316316
{
317317
/*
318318
* I couldn't understand the following old comment. If there's
319-
* no IO for the buffer and the buffer is BROKEN,it should be
319+
* no IO for the buffer and the buffer is BROKEN,it should be
320320
* read again. So start a new buffer IO here.
321321
*
322322
* wierd race condition:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp