@@ -2035,8 +2035,8 @@ func CheckDropTablePartition(meta *model.TableInfo, partLowerNames []string) err
2035
2035
return nil
2036
2036
}
2037
2037
2038
- // updateDroppingPartitionInfo move dropping partitions to DroppingDefinitions, and return partitionIDs
2039
- func updateDroppingPartitionInfo (tblInfo * model.TableInfo , partLowerNames []string ) [] int64 {
2038
+ // updateDroppingPartitionInfo move dropping partitions to DroppingDefinitions
2039
+ func updateDroppingPartitionInfo (tblInfo * model.TableInfo , partLowerNames []string ) {
2040
2040
oldDefs := tblInfo .Partition .Definitions
2041
2041
newDefs := make ([]model.PartitionDefinition , 0 , len (oldDefs )- len (partLowerNames ))
2042
2042
droppingDefs := make ([]model.PartitionDefinition , 0 , len (partLowerNames ))
@@ -2061,7 +2061,6 @@ func updateDroppingPartitionInfo(tblInfo *model.TableInfo, partLowerNames []stri
2061
2061
2062
2062
tblInfo .Partition .Definitions = newDefs
2063
2063
tblInfo .Partition .DroppingDefinitions = droppingDefs
2064
- return pids
2065
2064
}
2066
2065
2067
2066
func getPartitionDef (tblInfo * model.TableInfo , partName string ) (index int , def * model.PartitionDefinition , _ error ) {
@@ -2237,7 +2236,7 @@ func (w *worker) onDropTablePartition(jobCtx *jobContext, job *model.Job) (ver i
2237
2236
// Reason, see https://github.com/pingcap/tidb/issues/55888
2238
2237
// Only mark the partitions as to be dropped, so they are not used, but not yet removed.
2239
2238
originalDefs := tblInfo .Partition .Definitions
2240
- _ = updateDroppingPartitionInfo (tblInfo , partNames )
2239
+ updateDroppingPartitionInfo (tblInfo , partNames )
2241
2240
tblInfo .Partition .Definitions = originalDefs
2242
2241
job .SchemaState = model .StateWriteOnly
2243
2242
tblInfo .Partition .DDLState = job .SchemaState
@@ -2248,7 +2247,7 @@ func (w *worker) onDropTablePartition(jobCtx *jobContext, job *model.Job) (ver i
2248
2247
// Since the previous state do not use the dropping partitions,
2249
2248
// we can now actually remove them, allowing to write into the overlapping range
2250
2249
// of the higher range partition or LIST default partition.
2251
- _ = updateDroppingPartitionInfo (tblInfo , partNames )
2250
+ updateDroppingPartitionInfo (tblInfo , partNames )
2252
2251
err = dropLabelRules (jobCtx .stepCtx , job .SchemaName , tblInfo .Name .L , partNames )
2253
2252
if err != nil {
2254
2253
// TODO: Add failpoint error/cancel injection and test failure/rollback and cancellation!
@@ -3164,7 +3163,7 @@ func (w *worker) onReorganizePartition(jobCtx *jobContext, job *model.Job) (ver
3164
3163
// move the adding definition into tableInfo.
3165
3164
updateAddingPartitionInfo (partInfo , tblInfo )
3166
3165
orgDefs := tblInfo .Partition .Definitions
3167
- _ = updateDroppingPartitionInfo (tblInfo , partNames )
3166
+ updateDroppingPartitionInfo (tblInfo , partNames )
3168
3167
// Reset original partitions, and keep DroppedDefinitions
3169
3168
tblInfo .Partition .Definitions = orgDefs
3170
3169
0 commit comments