Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
  • Loading branch information
timvaillancourt committed Dec 17, 2024
1 parent 603809e commit 4566f5f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion go/vt/vtorc/logic/keyspace_shard_discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ func RefreshAllKeyspacesAndShards(ctx context.Context) error {

if err = eg.Wait(); err == nil {
// delete stale records from the previous success or older
if staleTime := lastAllKeyspaceShardsRefreshTime; !staleTime.IsZero() && staleTime.Unix() != time.Now().Unix() {
if staleTime := lastAllKeyspaceShardsRefreshTime; !staleTime.IsZero() {
if staleTime.Unix() != time.Now().Unix() {
return nil
}
if err := inst.DeleteStaleShards(staleTime); err != nil {
return err
}
Expand Down

0 comments on commit 4566f5f

Please sign in to comment.