diff --git a/go/vt/wrangler/materializer.go b/go/vt/wrangler/materializer.go index 01bfed3082a..a45a724fb9d 100644 --- a/go/vt/wrangler/materializer.go +++ b/go/vt/wrangler/materializer.go @@ -612,7 +612,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) } //