Skip to content

Commit

Permalink
Merge pull request pingcap#1 from 3pointer/fix_pd
Browse files Browse the repository at this point in the history
make timestamp order meaningfull
  • Loading branch information
Leavrth authored Oct 20, 2021
2 parents 70f1cbd + 58e4642 commit 6544103
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sync_diff_inspector/utils/pd.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ func parseSnapshotToTSO(pool *sql.DB, snapshot string) (uint64, error) {
if !tso.Valid {
return 0, errors.Errorf("snapshot %s format not supported. please use tso or '2006-01-02 15:04:05' format time", snapshot)
}
return (uint64(tso.Int64) << 18) * 1000, nil
return uint64(tso.Int64 * 1000) << 18, nil
}

func GetSnapshot(ctx context.Context, db *sql.DB) ([]string, error) {
Expand Down

0 comments on commit 6544103

Please sign in to comment.