code: func initTableIndices(t *tableCommon) error {
  	tblInfo := t.meta
  	for _, idxInfo := range tblInfo.Indices {
  		if idxInfo.State == model.StateNone {
  			return table.ErrIndexStateCantNone.GenWithStack("index %s can't be in none state", idxInfo.Name)
  		}
  
  		// Use partition ID for index, because tableCommon may be table or partition.
  		idx := NewIndex(t.physicalTableID, tblInfo, idxInfo)
  		t.indices = append(t.indices, idx)
  	}
  	return nil
  }
docs: // initTableIndices initializes the indices of the tableCommon.