Skip to content

Commit

Permalink
Fix data duplicate when restore data larger than 10*maxSegmentGroupSi…
Browse files Browse the repository at this point in the history
…ze (zilliztech#121)

Signed-off-by: wayblink <anyang.wang@zilliz.com>
  • Loading branch information
wayblink authored Apr 3, 2023
1 parent 5c41347 commit 8c05260
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/backup_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -1477,8 +1477,8 @@ func (b BackupContext) getBackupPartitionPathsWithGroupID(ctx context.Context, b
zap.Int64("partitionID", partition.GetPartitionId()),
zap.Int64("groupId", groupId))

insertPath := fmt.Sprintf("%s/%s/%s/%v/%v/%d", backupPath, BINGLOG_DIR, INSERT_LOG_DIR, partition.GetCollectionId(), partition.GetPartitionId(), groupId)
deltaPath := fmt.Sprintf("%s/%s/%s/%v/%v/%d", backupPath, BINGLOG_DIR, DELTA_LOG_DIR, partition.GetCollectionId(), partition.GetPartitionId(), groupId)
insertPath := fmt.Sprintf("%s/%s/%s/%v/%v/%d/", backupPath, BINGLOG_DIR, INSERT_LOG_DIR, partition.GetCollectionId(), partition.GetPartitionId(), groupId)
deltaPath := fmt.Sprintf("%s/%s/%s/%v/%v/%d/", backupPath, BINGLOG_DIR, DELTA_LOG_DIR, partition.GetCollectionId(), partition.GetPartitionId(), groupId)

exist, err := b.storageClient.Exist(ctx, bucketName, deltaPath)
if err != nil {
Expand Down

0 comments on commit 8c05260

Please sign in to comment.