diff --git a/server/http_handler.go b/server/http_handler.go index e859e43beef2d..0f0dba2005388 100644 --- a/server/http_handler.go +++ b/server/http_handler.go @@ -134,7 +134,7 @@ func (s *Server) newTikvHandlerTool() *tikvHandlerTool { type mvccKV struct { Key string `json:"key"` Value *kvrpcpb.MvccGetByKeyResponse `json:"value"` - RegionID uint64 `json:"region-id"` + RegionID uint64 `json:"region_id"` } func (t *tikvHandlerTool) getMvccByHandle(tableID, handle int64) (*mvccKV, error) { @@ -1349,9 +1349,6 @@ func (h mvccTxnHandler) handleMvccGetByKey(params map[string]string, decodeData colMap[col.ID] = &col.FieldType } - if err != nil { - return nil, err - } respValue := resp.Value var result interface{} = resp if respValue.Info != nil {