code: func GetDDLInfo(txn kv.Transaction) (*DDLInfo, error) {
  	var err error
  	info := &DDLInfo{}
  	t := meta.NewMeta(txn)
  
  	info.Jobs = make([]*model.Job, 0, 2)
  	job, err := t.GetDDLJobByIdx(0)
  	if err != nil {
  		return nil, errors.Trace(err)
  	}
  	if job != nil {
  		info.Jobs = append(info.Jobs, job)
  	}
  	addIdxJob, err := t.GetDDLJobByIdx(0, meta.AddIndexJobListKey)
  	if err != nil {
  		return nil, errors.Trace(err)
  	}
  	if addIdxJob != nil {
  		info.Jobs = append(info.Jobs, addIdxJob)
  	}
  
  	info.SchemaVer, err = t.GetSchemaVersion()
  	if err != nil {
  		return nil, errors.Trace(err)
  	}
  	if addIdxJob == nil {
  		return info, nil
  	}
  
  	info.ReorgHandle, _, _, err = t.GetDDLReorgHandle(addIdxJob)
  	if err != nil {
  		return nil, errors.Trace(err)
  	}
  
  	return info, nil
  }
docs: // GetDDLInfo returns DDL information.