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: fix slice init length #5755

Merged
merged 1 commit into from
Oct 8, 2024
Merged

fix: fix slice init length #5755

merged 1 commit into from
Oct 8, 2024

Conversation

cuishuang
Copy link
Contributor

@cuishuang cuishuang commented Oct 4, 2024

What problem does this PR solve?

The intention here should be to initialize a slice with a capacity of len(components) rather than initializing the length of this slice.

The online demo: https://go.dev/play/p/q1BcVCmvidW

What is changed and how does it work?

Code changes

  • Has Go code change
  • Has CI related scripts change

Tests

  • Unit test
  • E2E test
  • Manual test
  • No code

Side effects

  • Breaking backward compatibility
  • Other side effects:

Related changes

  • Need to cherry-pick to the release branch
  • Need to update the documentation

Release Notes

Please refer to Release Notes Language Style Guide before writing the release note.

 fix slice init length

@ti-chi-bot ti-chi-bot bot requested a review from howardlau1999 October 4, 2024 12:12
@sre-bot
Copy link
Contributor

sre-bot commented Oct 4, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

ti-chi-bot bot commented Oct 4, 2024

Welcome @cuishuang! It looks like this is your first PR to pingcap/tidb-operator 🎉

@ti-chi-bot ti-chi-bot bot added the size/XS label Oct 4, 2024
Copy link
Contributor

ti-chi-bot bot commented Oct 8, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: csuzhangxc

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot added the lgtm label Oct 8, 2024
Copy link
Contributor

ti-chi-bot bot commented Oct 8, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-10-08 03:36:13.145724811 +0000 UTC m=+930728.565937824: ☑️ agreed by csuzhangxc.

@ti-chi-bot ti-chi-bot bot added the approved label Oct 8, 2024
@csuzhangxc csuzhangxc merged commit 1468c27 into pingcap:master Oct 8, 2024
6 checks passed
@csuzhangxc
Copy link
Member

/cherry-pick release-1.6

@ti-chi-bot
Copy link
Member

@csuzhangxc: new pull request created to branch release-1.6: #5757.

In response to this:

/cherry-pick release-1.6

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants