Skip to content

Commit

Permalink
Set Bolt's bucket.FillPercent to 1 as the DB is append only
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed May 5, 2019
1 parent 82f6d32 commit e85b0e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hub/history.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ func (b *boltHistory) Add(update *Update) error {

// The sequence value is prepended to the update id to create an ordered list
key := bytes.Join([][]byte{prefix, []byte(update.ID)}, []byte{})

// The DB is append only
bucket.FillPercent = 1
return bucket.Put(key, buf)
})
}
Expand Down

0 comments on commit e85b0e5

Please sign in to comment.