From 2534d6c592d728a2fe3621ad4ea89fa88c264faa Mon Sep 17 00:00:00 2001 From: lukechampine Date: Sat, 3 Oct 2020 13:52:02 -0400 Subject: [PATCH] kv: Use bucketShards for sequence number --- renter/renterutil/metadb.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renter/renterutil/metadb.go b/renter/renterutil/metadb.go index 0e7cc02..83f8b51 100644 --- a/renter/renterutil/metadb.go +++ b/renter/renterutil/metadb.go @@ -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 }