Branch: Tag:

2012-02-09

2012-02-09 13:29:47 by Arne Goedeke <el@laramies.com>

set prev only if first

396:       if (unlikely(p->blocks_used == a->blocks)) {    a->first = p->next; -  BA_PAGE(a, a->first)->prev = 0; +     if (!a->first) {    a->last = 0; -  } +  } else +  BA_PAGE(a, a->first)->prev = 0;    p->next = 0;    } else {    //fprintf(stderr, "next: %u\n", ((struct ba_block_header*)ptr)->next);