diff options
| author | Adam Shannon <adamkshannon@gmail.com> | 2020-04-05 16:18:44 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-06 09:18:44 +1000 |
| commit | 8b0bfd30a3ddb2c6afc78a41de4aa2bb6a66ce00 (patch) | |
| tree | e73bb22322a1540ce75d90f0085d889d057a1574 /app | |
| parent | f29ff54542a86f2cafbdea57dac19507bc20e6a9 (diff) | |
app: fix bitcask migration path (#17)
Co-authored-by: James Mills <prologic@shortcircuit.net.au>
Diffstat (limited to 'app')
| -rw-r--r-- | app/bitcask_store.go | 2 |
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 |
