diff --git a/go/vt/wrangler/materializer.go b/go/vt/wrangler/materializer.go index c7576067c5a..08b5ff75b35 100644 --- a/go/vt/wrangler/materializer.go +++ b/go/vt/wrangler/materializer.go @@ -749,7 +749,10 @@ func (wr *Wrangler) ExternalizeVindex(ctx context.Context, qualifiedVindexName s // Remove the write_only param and save the source vschema. delete(sourceVindex.Params, "write_only") - return wr.ts.SaveVSchema(ctx, sourceKeyspace, sourceVSchema) + if err := wr.ts.SaveVSchema(ctx, sourceKeyspace, sourceVSchema); err != nil { + return err + } + return wr.ts.RebuildSrvVSchema(ctx, nil) } //