diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-11-02 00:58:41 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-11-02 00:58:41 -0700 |
commit | 7ec1187b1987861831a88737ffb8512e8568ad8c (patch) | |
tree | 875cd7783e9292c57f9ac608eb9611478ecfab6a /system/db/content.go | |
parent | 74490e762221817b48d900b90cd343db4b1000fd (diff) |
swapping order of post winding
Diffstat (limited to 'system/db/content.go')
-rw-r--r-- | system/db/content.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/system/db/content.go b/system/db/content.go index 7337f0f..714e0c6 100644 --- a/system/db/content.go +++ b/system/db/content.go @@ -214,6 +214,10 @@ func Query(namespace string, opts QueryOptions) [][]byte { var posts [][]byte store.View(func(tx *bolt.Tx) error { b := tx.Bucket([]byte(namespace)) + if b == nil { + return nil + } + c := b.Cursor() n := b.Stats().KeyN |