summaryrefslogtreecommitdiff
path: root/app/bitcask_store.go
diff options
context:
space:
mode:
authorAdam Shannon <adamkshannon@gmail.com>2020-04-05 16:18:44 -0700
committerGitHub <noreply@github.com>2020-04-06 09:18:44 +1000
commit8b0bfd30a3ddb2c6afc78a41de4aa2bb6a66ce00 (patch)
treee73bb22322a1540ce75d90f0085d889d057a1574 /app/bitcask_store.go
parentf29ff54542a86f2cafbdea57dac19507bc20e6a9 (diff)
app: fix bitcask migration path (#17)
Co-authored-by: James Mills <prologic@shortcircuit.net.au>
Diffstat (limited to 'app/bitcask_store.go')
-rw-r--r--app/bitcask_store.go2
1 files changed, 1 insertions, 1 deletions
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