diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-08-02 22:36:05 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-08-02 22:36:05 +0000 |
commit | 22c64f18349dfba623f9c844363b484475d3c45e (patch) | |
tree | a4d87182a595ed7a32541d50712da12247f0ba8f /src/backend/bootstrap/bootstrap.c | |
parent | 154f26ff5960ea11d0d5683dd2a119dc15d01218 (diff) | |
download | postgresql-22c64f18349dfba623f9c844363b484475d3c45e.tar.gz postgresql-22c64f18349dfba623f9c844363b484475d3c45e.zip |
When compiling with --enable-cassert, check for reference count leaks
in the relcache. It's rather silly that we have reference count leak
checks in bufmgr and in catcache, but not in relcache which will normally
have many fewer entries. Chris K-L would have caught at least one bug
in his recent DROP patch if he'd had this.
Diffstat (limited to 'src/backend/bootstrap/bootstrap.c')
-rw-r--r-- | src/backend/bootstrap/bootstrap.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/backend/bootstrap/bootstrap.c b/src/backend/bootstrap/bootstrap.c index f48c8389ce6..98ad33866be 100644 --- a/src/backend/bootstrap/bootstrap.c +++ b/src/backend/bootstrap/bootstrap.c @@ -8,7 +8,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.134 2002/08/02 18:15:04 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.135 2002/08/02 22:36:05 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -550,7 +550,6 @@ closerel(char *name) else elog(ERROR, "closerel: close of '%s' before any relation was opened", name); - } if (boot_reldesc == NULL) @@ -822,8 +821,8 @@ cleanup() elog(FATAL, "Memory manager fault: cleanup called twice.\n"); proc_exit(1); } - if (boot_reldesc != (Relation) NULL) - heap_close(boot_reldesc, NoLock); + if (boot_reldesc != NULL) + closerel(NULL); CommitTransactionCommand(); proc_exit(Warnings); } |