<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
<HTML><HEAD>
<STYLE type=text/css> P, UL, OL, DL, DIR,
MENU, PRE { margin: 0 auto;}</STYLE>
<META content="MSHTML 6.00.2900.2802" name=GENERATOR></HEAD>
<BODY leftMargin=1 topMargin=1 rightMargin=1><FONT
face=Tahoma>
<DIV><FONT face=Arial size=2>OK - have code
written. I'm running unit tests now.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>My code was
written against code *prior* to Bryan's major
overhaul of the serialization mechanism.
Do we have any solid experience with this
new code? Is it 100% backwards compatible?
There's an aweful lot of lines changed...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I need to get
this deletion capability into a production
environment, and I'm a bit nervous of also
releasing the new serialization facility...
I don't think we want to get into branching
the code base either... I'm perfectly
happy to keep this code on my system and
not release it into HEAD for the time being
if that's the best way to approach this.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Any thoughts?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>- K</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> </FONT>
<TABLE>
<TBODY>
<TR>
<TD width=1 bgColor=blue><FONT face=Arial
size=2></FONT></TD>
<TD><FONT face=Arial size=2><FONT color=red>>
<BR>That's pretty much how I would go about
it.<BR><BR>alex<BR><BR>Kevin Day wrote:<BR>>
I wanted to follow up on something Bryan
mentioned last week: Right <BR>>
now, there is no way to delete a BTree. You
can delete the root, but <BR>> that won't
delete any of the pages...<BR>> <BR>>
I have an immediate need for doing this kind
of deletion in my <BR>> application, and
I'm wondering if you guys have any preferences
on how <BR>> to add this...<BR>> <BR>>
Here is what I'm thinking about doing:<BR>>
<BR>> 1. Add an instance method
delete() to BTree<BR>> 2. Add an
instance method delete() to BPage<BR>>
3. Have BTree call delete on all of
it's children recursively, then <BR>>
delete itself<BR>> <BR>> The
recman will be assocaited with the BTree
already (via the statis <BR>> load() method),
so I don't think we need to pass that in
again.<BR>> <BR>> <BR>>
Does anyone have any objections to the above
strategy, or is there a <BR>> better approach
that I haven't thought of?<BR>> <BR>>
Thanks!<BR>> - K<BR><BR><BR><<BR></FONT></FONT></TD></TR></TBODY></TABLE></DIV></FONT></BODY></HTML>
|