code: func (h *Handle) DumpStatsFeedbackToKV() error {
  	var err error
  	var successCount int
  	for _, fb := range h.feedback {
  		if fb.Tp == statistics.PkType {
  			err = h.DumpFeedbackToKV(fb)
  		} else {
  			t, ok := h.StatsCache.Load().(StatsCache)[fb.PhysicalID]
  			if ok {
  				err = h.DumpFeedbackForIndex(fb, t)
  			}
  		}
  		if err != nil {
  			break
  		}
  		successCount++
  	}
  	h.feedback = h.feedback[successCount:]
  	return errors.Trace(err)
  }
docs: // DumpStatsFeedbackToKV dumps the stats feedback to KV.