public override void GetNewSegment(Segment seg) { seg.SegmentID = m_next_segment_id; seg.Initialize(m_next_segment_id++); _put_in_cache(seg); }
public override void GetNewSegment(Segment seg) { uint segId = m_bitmap.GetFirstFreePageID(); seg.Initialize(segId); m_bitmap.SetPageTaken(segId); //put the new node into cache //kick out one if needed _put_in_cache(seg); }