code: func (rt *RegionDetail) addTableInRange(dbName string, curTable *model.TableInfo, r *helper.RegionFrameRange) {
  	tName := curTable.Name.String()
  	tID := curTable.ID
  
  	for _, index := range curTable.Indices {
  		if f := r.GetIndexFrame(tID, index.ID, dbName, tName, index.Name.String()); f != nil {
  			rt.Frames = append(rt.Frames, f)
  		}
  	}
  	if f := r.GetRecordFrame(tID, dbName, tName); f != nil {
  		rt.Frames = append(rt.Frames, f)
  	}
  }
docs: // addTableInRange insert a table into RegionDetail
  // with index's id or record in the range if r.