code: func (s *session) fillRecord(r *sessionRecord, snapshot bool) {
  	r.setNextFileNum(s.nextFileNum())
  
  	if snapshot {
  		if !r.has(recJournalNum) {
  			r.setJournalNum(s.stJournalNum)
  		}
  
  		if !r.has(recSeqNum) {
  			r.setSeqNum(s.stSeqNum)
  		}
  
  		for level, ik := range s.stCompPtrs {
  			if ik != nil {
  				r.addCompPtr(level, ik)
  			}
  		}
  
  		r.setComparer(s.icmp.uName())
  	}
  }
docs: // Manifest related utils.
  // Fill given session record obj with current states; need external
  // synchronization.