Skip to content

Commit

Permalink
lxd/storage/utils: Remove setting UUID when inserting buckets
Browse files Browse the repository at this point in the history
Signed-off-by: Julian Pelizäus <[email protected]>
  • Loading branch information
roosterfish committed Feb 20, 2024
1 parent 28f5f2a commit 92e0ff3
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lxd/storage/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"strings"
"time"

"github.com/google/uuid"
"golang.org/x/sys/unix"

"github.com/canonical/lxd/lxd/apparmor"
Expand Down Expand Up @@ -380,11 +379,6 @@ func BucketDBCreate(ctx context.Context, pool Pool, projectName string, memberSp
bucket.Config = map[string]string{}
}

// Ensure bucket has an UUID.
if bucket.Config["volatile.uuid"] == "" {
bucket.Config["volatile.uuid"] = uuid.New().String()
}

bucketVolName := project.StorageVolume(projectName, bucket.Name)
bucketVol := drivers.NewVolume(pool.Driver(), pool.Name(), drivers.VolumeTypeBucket, drivers.ContentTypeFS, bucketVolName, bucket.Config, pool.Driver().Config())

Expand Down

0 comments on commit 92e0ff3

Please sign in to comment.