diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-06-18 16:16:58 -0600 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-06-18 16:16:58 -0600 |
commit | b1dbd35da1d7abea5e52b7aacdb7bed2812dd9db (patch) | |
tree | fb2c88aecba8c12709de55d099947ddb3b016016 /db_test.go | |
parent | Merge pull request #201 from Shopify/freelist_stats_cleanup (diff) | |
download | dedo-b1dbd35da1d7abea5e52b7aacdb7bed2812dd9db.tar.gz dedo-b1dbd35da1d7abea5e52b7aacdb7bed2812dd9db.tar.xz |
Fix merge-split regression.
This commit reverts merge-split and fixes the node.split() to do a multi-page split. This issue
caused problems with bulk loading because it would split into a small page and a very large page.
The very large page, in turn, would be an arbitrary size so when it was freed later it would be
difficult to reuse and would cause serious fragmentation issues.
Diffstat (limited to 'db_test.go')
-rw-r--r-- | db_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -512,7 +512,7 @@ func withOpenDB(fn func(*DB, string)) { // mustCheck runs a consistency check on the database and panics if any errors are found. func mustCheck(db *DB) { - err := db.Update(func(tx *Tx) error { + err := db.View(func(tx *Tx) error { return <-tx.Check() }) if err != nil { |