Message 51

Re: newDataPage

X-Added: With Flames (bblib $Revision: 1.4 $)
Return-path: <spapadim+@cs.cmu.edu>
X-Andrew-Authenticated-as: 0;andrew.cmu.edu;Network-Mail
Received: from po0.andrew.cmu.edu via trymail for bb+academic.cs.15-721@andrew.cmu.edu
          ID </afs/andrew.cmu.edu/usr0/bb/Mailbox/EvjVgWy00UdY8Ywk4U>;
          Fri,  5 Oct 2001 16:42:11 -0400 (EDT)
Received: from mx2.andrew.cmu.edu (MX2.ANDREW.CMU.EDU [128.2.10.112])
        by po0.andrew.cmu.edu (8.9.3/8.9.3) with ESMTP id QAA09455
        for <bb+academic.cs.15-721@ams.andrew.cmu.edu>; Fri, 5 Oct 2001 16:42:10 -0400 (EDT)
Received: from iluvatar.dhs.org (pool-151-201-19-40.pitt.east.verizon.net [151.201.19.40])
        by mx2.andrew.cmu.edu (8.12.0.Beta16/8.12.0.Beta16) with ESMTP id f95Kg9tx021635
        for <bb+academic.cs.15-721@andrew.cmu.edu>; Fri, 5 Oct 2001 16:42:10 -0400
Received: from cs.cmu.edu (iluvatar.hobbiton.cmu.edu [192.168.0.2])
        by iluvatar.dhs.org (Postfix) with ESMTP
        id 98E5E204F4; Fri,  5 Oct 2001 16:42:08 -0400 (EDT)
Message-ID: <3BBE1B1F.8070207@cs.cmu.edu>
Date: Fri, 05 Oct 2001 16:42:07 -0400
From: Spiros Papadimitriou <spapadim+@cs.cmu.edu>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.3) Gecko/20010808
X-Accept-Language: en-us
MIME-Version: 1.0
To: Georgios Markakis <markakis@cs.cmu.edu>
Cc: bb+academic.cs.15-721@andrew.cmu.edu
Subject: Re: newDataPage
References: <032501c14dd6$e21d5dc0$17b90280@sp.cs.cmu.edu>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

>
> What's _newDatapage(DataPageInfo *dpinfop) supposed to be doing?
>
> Create a new datapage somehow using the dpinfo provided? Or create a 
> new datapage and return a initialized dpinfo?
>
_newDatapage() is a private method and is specific to Minibase's
implementation of the heap file, so you shouldn't necessarily worry
about this--unfortunately, Minibase's design ocassionaly fails to
make the distinction between interface (ie. type) and class (ie.
object state and operation implementation)...

But since you asked, in Minibase's implementation, _newDatapage()
gets a new page (from the buffer mgr), initializes it and also
initializes the DataPageInfo structure it was passed.  However,
you shouldn't really care about this... :-)

Spiros