Skip to content

Commit

Permalink
Merge branch 'volume_delete2'
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwenfeng committed Nov 22, 2024
2 parents 1bafdee + 1e2f321 commit 61e1098
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion weed/server/volume_grpc_erasure_coding.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,9 @@ func deleteEcShardIdsForEachLocation(bName string, location *storage.DiskLocatio
if util.FileExists(shardFileName) {
if soft {
err := erasure_coding.MoveFile(shardFileName, erasure_coding.GetSoftDeleteDir(shardFileName))
return deletedShards, err
if err != nil {
return deletedShards, err
}
} else {
os.Remove(shardFileName)
}
Expand Down

0 comments on commit 61e1098

Please sign in to comment.