Skip to content

Refine some include headers & add option ENABLE_FAILPOINTS (#2296)#2481

Merged
JaySon-Huang merged 3 commits intopingcap:release-4.0from
ti-srebot:release-4.0-9d51ac4e0c64
Jul 29, 2021
Merged

Refine some include headers & add option ENABLE_FAILPOINTS (#2296)#2481
JaySon-Huang merged 3 commits intopingcap:release-4.0from
ti-srebot:release-4.0-9d51ac4e0c64

Conversation

@ti-srebot
Copy link
Collaborator

@ti-srebot ti-srebot commented Jul 23, 2021

cherry-pick #2296 to release-4.0
You can switch your code base to this Pull Request by using git-extras:

# In tics repo:
git pr https://github.com/pingcap/tics/pull/2481

After apply modifications, you can push your change to this PR via:

git push git@github.com:ti-srebot/tics.git pr/2481:release-4.0-9d51ac4e0c64

What problem does this PR solve?

Issue Number: related to #2295

What is changed and how it works?

  • Only include these files when need:
    • <Common/Config/cpptoml.h>
    • <tipb/select.pb.h> in <Interpreters/TimezoneInfo.h>
    • <Flash/Coprocessor/DAGContext.h> in <Interpreters/Context.h>
  • Add "ENABLE_FAILPOINTS" so that we can build a release binary with failpoint enabled with
    cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DENABLE_TESTS=OFF -DENABLE_FAILPOINTS=ON ..

This can remove dependency for some targets (page_storage for example) and make it easier to write and run unit tests.

Related changes

Check List

Tests

  • No code

Side effects

Release note

  • No release note

Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-srebot ti-srebot added CHERRY-PICK cherry pick status/LGT1 Indicates that a PR has LGTM 1. labels Jul 23, 2021
@ti-srebot ti-srebot added this to the v4.0.14 milestone Jul 23, 2021
Signed-off-by: JaySon-Huang <jayson.hjs@gmail.com>
@JaySon-Huang
Copy link
Contributor

/run-all-tests

@JaySon-Huang
Copy link
Contributor

/run-all-tests

@JaySon-Huang JaySon-Huang merged commit 46faabe into pingcap:release-4.0 Jul 29, 2021
@JaySon-Huang JaySon-Huang deleted the release-4.0-9d51ac4e0c64 branch July 29, 2021 07:36
@JaySon-Huang JaySon-Huang modified the milestones: v4.0.14, v4.0.15 Aug 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CHERRY-PICK cherry pick status/LGT1 Indicates that a PR has LGTM 1.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants