Skip site navigation (1) Skip section navigation (2)

trivial fix in fd.c

From: "Qingqing Zhou" <zhouqq(at)cs(dot)toronto(dot)edu>
To: pgsql-patches(at)postgresql(dot)org
Subject: trivial fix in fd.c
Date: 2006-05-22 08:03:15
Message-ID: e4rrer$8n4$1@news.hub.org (view raw or flat)
Thread:
Lists: pgsql-patches
Fix a format warning in fd.c when FDDEBUG is on.

By the way (to save a thread): What's the rationale of designing resowner
APIs like this:

    ResourceOwnerEnlargeABC();
    ResourceOwnerRememberABC();

Is that because sometimes we don't allow any elog in
ResourceOwnerRememberABC()?

Regards,
Qingqing


Index: fd.c
===================================================================
RCS file: /projects/cvsroot/pgsql/src/backend/storage/file/fd.c,v
retrieving revision 1.127
diff -c -r1.127 fd.c
*** fd.c        5 Mar 2006 15:58:37 -0000       1.127
--- fd.c        22 May 2006 08:00:42 -0000
***************
*** 649,655 ****
        Index           i;
        File            file;

!       DO_DB(elog(LOG, "AllocateVfd. Size %d", SizeVfdCache));

        Assert(SizeVfdCache > 0);       /* InitFileAccess not called? */

--- 649,655 ----
        Index           i;
        File            file;

!       DO_DB(elog(LOG, "AllocateVfd. Size %lu", SizeVfdCache));

        Assert(SizeVfdCache > 0);       /* InitFileAccess not called? */




Responses

pgsql-patches by date

Next:From: Peter EisentrautDate: 2006-05-22 10:17:33
Subject: Duplicate definition of LOCALEDIR
Previous:From: Bruce MomjianDate: 2006-05-20 00:25:17
Subject: Re: [HACKERS] patch review, please: Autovacuum/Vacuum times via stats.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group