diff options
author | Steve Manuel <nilslice@gmail.com> | 2017-01-10 11:17:55 -0800 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2017-01-10 11:17:55 -0800 |
commit | 3532b3cea423c7ff23663df1249f3cd3e323792b (patch) | |
tree | 66c361490b54bbf704c99accf14dd2bc6a96c40c /system/db/addon.go | |
parent | 159acf2ebbe6688f4f24deedc3e9ca4880a63b3b (diff) |
now that we possibly create the __addon bucket here, tx type needs to be writable
Diffstat (limited to 'system/db/addon.go')
-rw-r--r-- | system/db/addon.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/db/addon.go b/system/db/addon.go index 4558532..8607119 100644 --- a/system/db/addon.go +++ b/system/db/addon.go @@ -137,7 +137,7 @@ func DeleteAddon(key string) error { // value at addon_reverse_dns func AddonExists(key string) bool { var exists bool - err := store.View(func(tx *bolt.Tx) error { + err := store.Update(func(tx *bolt.Tx) error { b, err := tx.CreateBucketIfNotExists([]byte("__addons")) if err != nil { return err |