diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-04-07 16:24:51 -0600 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-04-11 12:36:54 -0600 |
commit | 698b07b074dc554578ecddd138972702f46d0879 (patch) | |
tree | f171f10bd4f17986cb9120d71263995b28273a7a /cmd/bolt/set.go | |
parent | Update cursor benchmark. (diff) | |
download | dedo-698b07b074dc554578ecddd138972702f46d0879.tar.gz dedo-698b07b074dc554578ecddd138972702f46d0879.tar.xz |
Add nested buckets.
This commit adds the ability to create buckets inside of other buckets.
It also replaces the buckets page with a root bucket.
Fixes #56.
Diffstat (limited to 'cmd/bolt/set.go')
-rw-r--r-- | cmd/bolt/set.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/bolt/set.go b/cmd/bolt/set.go index ff12024..9761f44 100644 --- a/cmd/bolt/set.go +++ b/cmd/bolt/set.go @@ -22,7 +22,7 @@ func Set(path, name, key, value string) { err = db.Update(func(tx *bolt.Tx) error { // Find bucket. - b := tx.Bucket(name) + b := tx.Bucket([]byte(name)) if b == nil { fatalf("bucket not found: %s", name) return nil |