Skip to content

Commit

Permalink
fix: setPieceMetadata sql
Browse files Browse the repository at this point in the history
  • Loading branch information
constwz committed Jun 5, 2024
1 parent f3d5a1a commit 57421a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion store/sqldb/object_integrity.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ func (s *SpDBImpl) DeleteReplicatePieceChecksum(objectID uint64, segmentIdx uint
metrics.SPDBTime.WithLabelValues(SPDBSuccessDelReplicatePieceChecksum).Observe(
time.Since(startTime).Seconds())
}()
err = s.db.Where("object_id = ? and segment_idx = ? and redundancy_index = ? ", objectID, segmentIdx, redundancyIdx).Delete(PieceHashTable{}).Error
err = s.db.Where("object_id = ? and segment_index = ? and redundancy_index = ? ", objectID, segmentIdx, redundancyIdx).Delete(PieceHashTable{}).Error
return err
}

Expand Down

0 comments on commit 57421a0

Please sign in to comment.