Skip to content

FFI: Use CppStrWithView as the return type of fn_get_lock_by_key#426

Merged
ti-chi-bot[bot] merged 3 commits intoraftstore-proxyfrom
fix_get_lock
Feb 25, 2025
Merged

FFI: Use CppStrWithView as the return type of fn_get_lock_by_key#426
ti-chi-bot[bot] merged 3 commits intoraftstore-proxyfrom
fix_get_lock

Conversation

@JaySon-Huang
Copy link
Collaborator

@JaySon-Huang JaySon-Huang commented Feb 25, 2025

What is changed and how it works?

Issue Number: ref pingcap/tiflash#9915

Using BaseBuffView as the return type of fn_get_lock_by_key is not memory safe.

What's Changed:

FFI: Use CppStrWithView as the return type of fn_get_lock_by_key

Related changes

  • PR to update pingcap/docs/pingcap/docs-cn:
  • Need to cherry-pick to the release branch

Check List

Tests

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

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Release note


Signed-off-by: JaySon-Huang <tshent@qq.com>
Signed-off-by: JaySon-Huang <tshent@qq.com>
Signed-off-by: JaySon-Huang <tshent@qq.com>
@ti-chi-bot ti-chi-bot bot added size/M and removed size/S labels Feb 25, 2025
Copy link
Member

@CalvinNeo CalvinNeo 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-chi-bot ti-chi-bot bot added the lgtm label Feb 25, 2025
@ti-chi-bot
Copy link

ti-chi-bot bot commented Feb 25, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: CalvinNeo

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

The pull request process is described here

Details 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
Copy link

ti-chi-bot bot commented Feb 25, 2025

[LGTM Timeline notifier]

Timeline:

  • 2025-02-25 16:04:49.184783555 +0000 UTC m=+371837.137941821: ☑️ agreed by CalvinNeo.

@ti-chi-bot ti-chi-bot bot added the approved label Feb 25, 2025
@ti-chi-bot ti-chi-bot bot merged commit b99342a into raftstore-proxy Feb 25, 2025
4 checks passed
@JaySon-Huang JaySon-Huang deleted the fix_get_lock branch February 26, 2025 01:36
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.

2 participants