Skip to content

Commit

Permalink
kv: Use bucketShards for sequence number
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechampine committed Oct 3, 2020
1 parent 289e2b3 commit 2534d6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renter/renterutil/metadb.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ var (
// AddShard implements MetaDB.
func (db *BoltMetaDB) AddShard(s DBShard) (id uint64, err error) {
err = db.bdb.Update(func(tx *bolt.Tx) error {
id, err = tx.Bucket(bucketChunks).NextSequence()
id, err = tx.Bucket(bucketShards).NextSequence()
if err != nil {
return err
}
Expand Down

0 comments on commit 2534d6c

Please sign in to comment.