diff --git a/cmd/bucket-lifecycle.go b/cmd/bucket-lifecycle.go index 1ba30c846..ad15377f1 100644 --- a/cmd/bucket-lifecycle.go +++ b/cmd/bucket-lifecycle.go @@ -269,13 +269,13 @@ func expireTransitionedObject(ctx context.Context, objectAPI ObjectLayer, oi *Ob } // generate an object name for transitioned object -func genTransitionObjName() (string, error) { +func genTransitionObjName(bucket string) (string, error) { u, err := uuid.NewRandom() if err != nil { return "", err } us := u.String() - obj := fmt.Sprintf("%s/%s/%s", us[0:2], us[2:4], us) + obj := fmt.Sprintf("%s/%s/%s/%s/%s", globalDeploymentID, bucket, us[0:2], us[2:4], us) return obj, nil } diff --git a/cmd/erasure-object.go b/cmd/erasure-object.go index c21b5e764..4b1bef5e4 100644 --- a/cmd/erasure-object.go +++ b/cmd/erasure-object.go @@ -1399,7 +1399,7 @@ func (er erasureObjects) TransitionObject(ctx context.Context, bucket, object st return nil } - destObj, err := genTransitionObjName() + destObj, err := genTransitionObjName(bucket) if err != nil { return err }