core/metadata: migrate sandboxes bucket into v1
Signed-off-by: Wei Fu <fuweid89@gmail.com>
This commit is contained in:
@@ -301,6 +301,7 @@ func getIngestBucket(tx *bolt.Tx, namespace, ref string) *bolt.Bucket {
|
||||
func createSandboxBucket(tx *bolt.Tx, namespace string) (*bolt.Bucket, error) {
|
||||
return createBucketIfNotExists(
|
||||
tx,
|
||||
bucketKeyVersion,
|
||||
[]byte(namespace),
|
||||
bucketKeyObjectSandboxes,
|
||||
)
|
||||
@@ -309,6 +310,7 @@ func createSandboxBucket(tx *bolt.Tx, namespace string) (*bolt.Bucket, error) {
|
||||
func getSandboxBucket(tx *bolt.Tx, namespace string) *bolt.Bucket {
|
||||
return getBucket(
|
||||
tx,
|
||||
bucketKeyVersion,
|
||||
[]byte(namespace),
|
||||
bucketKeyObjectSandboxes,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user