Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*: clean up the deserted syntax of START TRANSACTION READ ONLY #1230

Merged
merged 5 commits into from
May 27, 2021

Conversation

JmPotato
Copy link
Member

Signed-off-by: JmPotato [email protected]

What problem does this PR solve?

Part of pingcap/tidb#24291 and pingcap/tidb#24813.

What is changed and how it works?

After supporting the AS OF TIMESTAMP syntax for START TRANSACTION READ ONLY statement, we need to clean up the remaining deserted syntax.

Check List

Tests

  • Unit test
  • Integration test

@JmPotato
Copy link
Member Author

@djshow832 @nolouch PTAL.

@xhebox
Copy link
Contributor

xhebox commented May 25, 2021

/lgtm

@ti-srebot ti-srebot added the status/LGT1 LGT1 label May 25, 2021
Mode string
ReadOnly bool
Bound *TimestampBound
CausalConsistencyOnly bool
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this filed do not used?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#1162, looks like no.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After checking the TiDB code, I think this is used. Maybe I shouldn't remove it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nolouch @youjiali1995 I added it back and added more test cases. PTAL.

Copy link
Member

@nolouch nolouch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@ti-srebot ti-srebot removed the status/LGT1 LGT1 label May 27, 2021
@ti-srebot ti-srebot added the status/LGT2 LGT2 label May 27, 2021
@nolouch nolouch merged commit 60691f5 into pingcap:master May 27, 2021
@JmPotato JmPotato deleted the clean_up_start_transaction_syntax branch May 27, 2021 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants