aboutsummaryrefslogtreecommitdiff
path: root/bucket_test.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-07-24 11:25:57 -0600
committerBen Johnson <benbjohnson@yahoo.com>2014-07-24 11:25:57 -0600
commitd021755f077c19224e32f5d88a4f35a4076e00d6 (patch)
tree8082796f45131be814281ffd2b3acefab92d2656 /bucket_test.go
parentMerge pull request #228 from benbjohnson/fix-large-append (diff)
parentAdd FillPercent documentation. (diff)
downloaddedo-d021755f077c19224e32f5d88a4f35a4076e00d6.tar.gz
dedo-d021755f077c19224e32f5d88a4f35a4076e00d6.tar.xz
Merge pull request #229 from benbjohnson/bucket-fill-percent
Change fill percent to be per-bucket.
Diffstat (limited to 'bucket_test.go')
-rw-r--r--bucket_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/bucket_test.go b/bucket_test.go
index 99fdad8..029ff2b 100644
--- a/bucket_test.go
+++ b/bucket_test.go
@@ -674,8 +674,6 @@ func TestBucket_Stats_RandomFill(t *testing.T) {
}
withOpenDB(func(db *DB, path string) {
- db.FillPercent = 0.9
-
// Add a set of values in random order. It will be the same random
// order so we can maintain consistency between test runs.
var count int
@@ -683,6 +681,7 @@ func TestBucket_Stats_RandomFill(t *testing.T) {
for _, i := range r.Perm(1000) {
db.Update(func(tx *Tx) error {
b, _ := tx.CreateBucketIfNotExists([]byte("woojits"))
+ b.FillPercent = 0.9
for _, j := range r.Perm(100) {
index := (j * 10000) + i
b.Put([]byte(fmt.Sprintf("%d000000000000000", index)), []byte("0000000000"))