diff --git a/api/database/boltdb/db.go b/api/database/boltdb/db.go index 40411ce14..8fb371df2 100644 --- a/api/database/boltdb/db.go +++ b/api/database/boltdb/db.go @@ -421,7 +421,6 @@ func (connection *DbConnection) BackupMetadata() (map[string]interface{}, error) err := connection.View(func(tx *bolt.Tx) error { err := tx.ForEach(func(name []byte, bucket *bolt.Bucket) error { bucketName := string(name) - bucket = tx.Bucket([]byte(bucketName)) seqId := bucket.Sequence() buckets[bucketName] = int(seqId) return nil diff --git a/api/database/boltdb/export.go b/api/database/boltdb/export.go index fb582468c..00712c734 100644 --- a/api/database/boltdb/export.go +++ b/api/database/boltdb/export.go @@ -14,7 +14,6 @@ func backupMetadata(connection *bolt.DB) (map[string]interface{}, error) { err := connection.View(func(tx *bolt.Tx) error { err := tx.ForEach(func(name []byte, bucket *bolt.Bucket) error { bucketName := string(name) - bucket = tx.Bucket([]byte(bucketName)) seqId := bucket.Sequence() buckets[bucketName] = int(seqId) return nil