Skip to content

Commit

Permalink
add: add-repeat-upload-check
Browse files Browse the repository at this point in the history
增加日志
  • Loading branch information
Zherphy committed Nov 22, 2024
1 parent 144ba0e commit 4bcf8c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ func (s *server) uploadObject(in *batch.RequestObject, out *batch.Object) {
checkInput := s.getObjectMetadataInput(s.bucket, s.key(in.OID))
_, err := s.client.GetObjectMetadata(&checkInput)
if err == nil {
logrus.Infof("object already exists: %s", in.OID)
return
}

Expand Down

0 comments on commit 4bcf8c3

Please sign in to comment.