Skip to content

Commit

Permalink
fix cond
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Vaillancourt <[email protected]>
  • Loading branch information
timvaillancourt committed Dec 17, 2024
1 parent 4566f5f commit 3198115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/vt/vtorc/logic/keyspace_shard_discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ 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() {
if staleTime.Unix() != time.Now().Unix() {
if staleTime.Unix() == time.Now().Unix() {
return nil
}
if err := inst.DeleteStaleShards(staleTime); err != nil {
Expand Down

0 comments on commit 3198115

Please sign in to comment.