summaryrefslogtreecommitdiff
path: root/system/db/addon.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-01-10 11:17:55 -0800
committerSteve Manuel <nilslice@gmail.com>2017-01-10 11:17:55 -0800
commit3532b3cea423c7ff23663df1249f3cd3e323792b (patch)
tree66c361490b54bbf704c99accf14dd2bc6a96c40c /system/db/addon.go
parent159acf2ebbe6688f4f24deedc3e9ca4880a63b3b (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.go2
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