From c3400efefdf9733e98cb125d00a0c0721a2db51e Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Thu, 24 Jul 2014 10:36:09 -0600 Subject: Change fill percent to be per-bucket. This commit moves the DB.FillPercent field to Bucket.FillPercent. This allows the fill percentage to be specified per-bucket, per-tx. This value is not persisted and should be set whenever using it. --- node.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'node.go') diff --git a/node.go b/node.go index 75433ad..9dbc3f9 100644 --- a/node.go +++ b/node.go @@ -255,7 +255,7 @@ func (n *node) splitTwo(pageSize int) (*node, *node) { } // Determine the threshold before starting a new node. - var fillPercent = n.bucket.tx.db.FillPercent + var fillPercent = n.bucket.FillPercent if fillPercent < minFillPercent { fillPercent = minFillPercent } else if fillPercent > maxFillPercent { -- cgit v1.2.3