go/libraries/doltcore/dbfactory: file.go: Fix the default NBF Format used when constructing the old gen to match the new gen.

This commit is contained in:
Aaron Son
2022-02-24 13:56:35 -08:00
parent 7f647a8144
commit 753e959eb5

View File

@@ -77,7 +77,7 @@ func (fact FileFactory) CreateDB(ctx context.Context, nbf *types.NomsBinFormat,
}
}
oldGenSt, err := nbs.NewLocalStore(ctx, nbf.VersionString(), oldgenPath, defaultMemTableSize)
oldGenSt, err := nbs.NewLocalStore(ctx, newGenSt.Version(), oldgenPath, defaultMemTableSize)
if err != nil {
return nil, nil, err