Skip to content

Commit 8cb5930

Browse files
committed
asim: also trace StoreRebalancer
1 parent 5cc6559 commit 8cb5930

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/kv/kvserver/asim/asim.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,9 @@ func (s *Simulator) tickStoreRebalancers(ctx context.Context, tick time.Time, st
404404
stores := s.state.Stores()
405405
s.shuffler(len(stores), func(i, j int) { stores[i], stores[j] = stores[j], stores[i] })
406406
for _, store := range stores {
407-
s.srs[store.StoreID()].Tick(ctx, tick, state)
407+
s.doAndMaybeTrace(ctx, store.StoreID(), tick, "StoreRebalancer", func(ctx context.Context) {
408+
s.srs[store.StoreID()].Tick(ctx, tick, state)
409+
})
408410
}
409411
}
410412

0 commit comments

Comments
 (0)