Changeset 721 for trunk/cgi-bin


Ignore:
Timestamp:
05/08/15 13:48:11 (10 years ago)
Author:
Kris Deugau
Message:

/trunk

Fix bug adding new freeblocks after splitting a free block for a new
assignment; the free block that would be reserved would (almost?) always
be flagged, even when that wasn't requested.
See #24.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/IPDB.pm

    r720 r721  
    13471347        foreach my $block (@newfreeblocks) {
    13481348          $sth->execute($block, $fcity, $alloc_from_type, $args{vrf}, $fbparent, $fbmaster,
    1349                 ($block->masklen == $wantmaskbits ? $bid : 0));
     1349                ($args{reserve} && $block->masklen == $wantmaskbits ? $bid : 0));
    13501350        }
    13511351
Note: See TracChangeset for help on using the changeset viewer.