From 8b0bfd30a3ddb2c6afc78a41de4aa2bb6a66ce00 Mon Sep 17 00:00:00 2001 From: Adam Shannon Date: Sun, 5 Apr 2020 16:18:44 -0700 Subject: app: fix bitcask migration path (#17) Co-authored-by: James Mills --- app/bitcask_store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/bitcask_store.go b/app/bitcask_store.go index d79706e..0c6e897 100644 --- a/app/bitcask_store.go +++ b/app/bitcask_store.go @@ -34,7 +34,7 @@ func (s *BitcaskStore) Migrate(collection, id string) error { buf := make([]byte, 8) binary.BigEndian.PutUint64(buf, uint64(oldViews)) - err = s.db.Put([]byte(fmt.Sprintf("/views/%s/%s", id)), buf) + err = s.db.Put([]byte(fmt.Sprintf("/views/%s/%s", collection, id)), buf) if err != nil { err := fmt.Errorf("error storing new views for %s: %w", id, err) return err -- cgit v1.2.3