mirror of
https://github.com/dolthub/dolt.git
synced 2026-02-04 10:25:17 -06:00
go/store/nbs: fix race in table existence check
This commit is contained in:
@@ -315,7 +315,8 @@ func (ts tableSet) flatten(ctx context.Context) (tableSet, error) {
|
||||
|
||||
func (ts tableSet) checkAllTablesExist(ctx context.Context, specs []tableSpec, stats *Stats) error {
|
||||
eg, ectx := errgroup.WithContext(ctx)
|
||||
for _, spec := range specs {
|
||||
for _, s := range specs {
|
||||
spec := s
|
||||
eg.Go(func() error {
|
||||
exists, err := ts.p.Exists(ectx, spec.name, spec.chunkCount, stats)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user