예제 #1
0
        public override void GetNewSegment(Segment seg)
        {
            seg.SegmentID = m_next_segment_id;
            seg.Initialize(m_next_segment_id++);

            _put_in_cache(seg);
        }
예제 #2
0
        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);
        }
예제 #3
0
		public override void GetNewSegment(Segment seg)
		{
			seg.SegmentID = m_next_segment_id;		
			seg.Initialize(m_next_segment_id++);
 
			_put_in_cache(seg);
		}
예제 #4
0
		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);
		}