Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go/vt/srvtopo/resilient_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ func (server *ResilientServer) WatchSrvVSchema(ctx context.Context, cell string,
} else {
for c := range changes {
// Note we forward topo.ErrNoNode as is.
callback(nil, c.Err)
callback(c.Value, c.Err)
if c.Err != nil {
log.Warningf("Error while watching vschema for cell %s (will wait 5s before retrying): %v", cell, c.Err)
break
Expand Down
2 changes: 1 addition & 1 deletion go/vt/srvtopo/resilient_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ func TestWatchSrvVSchema(t *testing.T) {
// Update value, wait for it.
updatedValue := &vschemapb.SrvVSchema{
Keyspaces: map[string]*vschemapb.Keyspace{
"ks1": {},
"ks2": {},
},
}
if err := ts.UpdateSrvVSchema(ctx, "test_cell", updatedValue); err != nil {
Expand Down