Skip to content

Commit 2dd7a70

Browse files
committed
fix dolt bump
1 parent 675fc98 commit 2dd7a70

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

core/rootvalue.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import (
2525

2626
"github.com/cockroachdb/errors"
2727
"github.com/dolthub/dolt/go/libraries/doltcore/doltdb"
28-
"github.com/dolthub/dolt/go/libraries/doltcore/doltdb/durable"
2928
"github.com/dolthub/dolt/go/libraries/doltcore/schema"
3029
"github.com/dolthub/dolt/go/store/hash"
3130
"github.com/dolthub/dolt/go/store/prolly/tree"
@@ -549,11 +548,13 @@ func (root *RootValue) IterTables(ctx context.Context, cb func(name doltdb.Table
549548
}
550549

551550
err = tm.Iter(ctx, func(name string, addr hash.Hash) (bool, error) {
552-
nt, err := durable.TableFromAddr(ctx, root.VRW(), root.ns, addr)
551+
tbl, exists, err := doltdb.GetTable(ctx, root, addr)
552+
if !exists {
553+
return false, errors.Errorf("cannot find table %s from addr", name)
554+
}
553555
if err != nil {
554556
return true, err
555557
}
556-
tbl := doltdb.NewTableFromDurable(nt)
557558

558559
sch, err := tbl.GetSchema(ctx)
559560
if err != nil {

0 commit comments

Comments
 (0)