From 753e959eb5732a0f362eec55980a115385ebd026 Mon Sep 17 00:00:00 2001 From: Aaron Son Date: Thu, 24 Feb 2022 13:56:35 -0800 Subject: [PATCH] go/libraries/doltcore/dbfactory: file.go: Fix the default NBF Format used when constructing the old gen to match the new gen. --- go/libraries/doltcore/dbfactory/file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/libraries/doltcore/dbfactory/file.go b/go/libraries/doltcore/dbfactory/file.go index 90b2bd2758..a7346e56df 100644 --- a/go/libraries/doltcore/dbfactory/file.go +++ b/go/libraries/doltcore/dbfactory/file.go @@ -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