[Tux3] the first dleaf_chop in dleaf.c:main() crashes
Shapor Naghibzadeh
shapor at gmail.com
Tue Sep 9 14:12:18 PDT 2008
On Tue, Sep 9, 2008 at 1:49 PM, Daniel Phillips <phillips at phunq.net> wrote:
> On Tuesday 09 September 2008 13:35, Benjamin K. Stuhl wrote:
>> On Tue, September 9, 2008 14:26, Daniel Phillips wrote:
>> > Sorry, that was no good, how about:
>> >
>> > diff -r ef31d85601b7 user/test/dleaf.c
>> > --- a/user/test/dleaf.c Tue Sep 09 12:02:44 2008 -0700
>> > +++ b/user/test/dleaf.c Tue Sep 09 13:26:41 2008 -0700
>> > @@ -167,6 +167,9 @@ int dleaf_chop(BTREE, tuxkey_t high, vle
>> > struct entry *estop = entry - group->count;
>> > unsigned extents = 0, start = 0, trunc = 0;
>> > unsigned newgroups = leaf->groups;
>> > +
>> > + if (!newgroups)
>> > + return 0;
>> >
>> > while (1) {
>> > unsigned count = entry->limit - start;
>> >
>>
>> Yup, that works!
>
> OK, committed, thanks.
>
> Daniel
>
I just put in that dleaf crash 12 hours ago :)d
Shapor
_______________________________________________
Tux3 mailing list
Tux3 at tux3.org
http://tux3.org/cgi-bin/mailman/listinfo/tux3
More information about the Tux3
mailing list