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

fix(tianmu): revert code, mv ret value from try block back to catch block. (#1532) #1555

Conversation

Dysprosium0626
Copy link
Contributor

The logic of this modification is as follows:
Previously, set ret action has been moved to try block, which is not efficient because every time we do truncate success, ret will be setted to 1. This time we will move the set ret action back to catch block, which will only trigged when truncate failed.

Summary about this PR

Issue Number: close #1532

Tests Check List

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Changelog

  • New Feature
  • Bug Fix
  • Performance Improvement
  • Build/Testing/CI/CD
  • Documentation
  • Not for changelog (changelog entry is not required)

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features

…lock

[summary]

The logic of this modification is as follows:
Previously, set ret action has been moved to try block, which is not efficient because every time we do truncate success, ret will be setted to 1. This time we will move the set ret action back to catch block, which will only trigged when truncate failed.
@CLAassistant
Copy link

CLAassistant commented Apr 13, 2023

CLA assistant check
All committers have signed the CLA.

@mergify
Copy link
Contributor

mergify bot commented Apr 13, 2023

Thanks for the contribution!
I have applied any labels matching special text in your PR Changelog.

Please review the labels and make any necessary changes.

@mergify mergify bot added the PR-bug bug for pull request label Apr 13, 2023
@RingsC
Copy link
Contributor

RingsC commented Apr 13, 2023

@Dysprosium0626 Thanks for your contribution, and pls sign the CLA at first.

@Dysprosium0626
Copy link
Contributor Author

@RingsC thanks, I have completed signed the CLA

@codecov
Copy link

codecov bot commented Apr 13, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.09 ⚠️

Comparison is base (d0665f9) 45.14% compared to head (a50ed4a) 45.06%.

Additional details and impacted files
@@                 Coverage Diff                 @@
##           stonedb-5.7-dev    #1555      +/-   ##
===================================================
- Coverage            45.14%   45.06%   -0.09%     
===================================================
  Files                 1999     1999              
  Lines               413931   413931              
===================================================
- Hits                186873   186533     -340     
- Misses              227058   227398     +340     
Impacted Files Coverage Δ
storage/tianmu/handler/ha_tianmu.cpp 50.18% <ø> (ø)

... and 86 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Collaborator

@hustjieke hustjieke left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@Double0101 Double0101 left a comment

Choose a reason for hiding this comment

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

LGTM

@mergify mergify bot merged commit 8e197ae into stoneatom:stonedb-5.7-dev Apr 13, 2023
@Nliver Nliver added this to the stonedb_5.7_v1.0.4 milestone Apr 13, 2023
@Dysprosium0626 Dysprosium0626 deleted the mv_ret_value_from_try_block_back_to_catch_block_issue1532 branch April 13, 2023 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR-bug bug for pull request
Projects
Development

Successfully merging this pull request may close these issues.

bug: revert code, mv ret value from try block back to catch block
6 participants