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: remove an unnecessary unlock operation in rsync throttle #2657

Merged
merged 1 commit into from
May 17, 2024

Conversation

cheniujh
Copy link
Collaborator

@cheniujh cheniujh commented May 17, 2024

In the ThrottledByThroughput function, keys_mutex is already managed by unique_lock, so there's no need to manually unlock it.

在ThrottledByThroughput函数中,keys_mutex已经被unique_lock托管,没必要手动解锁。

@cheniujh cheniujh requested a review from wangshao1 May 17, 2024 10:02
@github-actions github-actions bot added ☢️ Bug Something isn't working 🧹 Updates This will not be worked on labels May 17, 2024
@cheniujh cheniujh requested review from AlexStocks and chejinge May 17, 2024 10:28
@baerwang baerwang merged commit 3e15569 into OpenAtomFoundation:unstable May 17, 2024
18 checks passed
chejinge pushed a commit to chejinge/pika that referenced this pull request May 21, 2024
Co-authored-by: cjh <1271435567@qq.com>
chenbt-hz pushed a commit to chenbt-hz/pika that referenced this pull request Jun 3, 2024
Co-authored-by: cjh <1271435567@qq.com>
baerwang pushed a commit that referenced this pull request Jun 5, 2024
* removed keys_mutex.unlock() (#2657)

Co-authored-by: cjh <1271435567@qq.com>

* add metricx

* fix

* fix

* fix

* change import

* fix flag

* add lock

* fix:code style

* fix CI

* Revert "Merge branch 'add_metrix' into add_metrix"

This reverts commit 4202962, reversing
changes made to 69069e2.

* Revert "Merge pull request #19 from AlexStocks/add_metrix"

This reverts commit 3651017, reversing
changes made to 12a3ccc.

* add_metricx

* fix lock

* fix panic

* fix

* fix review comment

* fix:comment

* fix cmdinfo

---------

Co-authored-by: cheniujh <41671101+cheniujh@users.noreply.github.com>
Co-authored-by: cjh <1271435567@qq.com>
Co-authored-by: chejinge <chejinge@360.cn>
Co-authored-by: alexstocks <alexstocks@foxmail.com>
Co-authored-by: Xin.Zh <dragoncharlie@foxmail.com>
bigdaronlee163 pushed a commit to bigdaronlee163/pika that referenced this pull request Jun 8, 2024
Co-authored-by: cjh <1271435567@qq.com>
@cheniujh cheniujh deleted the fix_lock_issue_rsync branch June 24, 2024 03:21
@cheniujh cheniujh restored the fix_lock_issue_rsync branch June 25, 2024 11:59
@coderabbitai coderabbitai bot mentioned this pull request Jun 27, 2024
chejinge pushed a commit that referenced this pull request Jul 31, 2024
Co-authored-by: cjh <1271435567@qq.com>
cheniujh added a commit to cheniujh/pika that referenced this pull request Sep 24, 2024
Co-authored-by: cjh <1271435567@qq.com>
cheniujh added a commit to cheniujh/pika that referenced this pull request Sep 24, 2024
* removed keys_mutex.unlock() (OpenAtomFoundation#2657)

Co-authored-by: cjh <1271435567@qq.com>

* add metricx

* fix

* fix

* fix

* change import

* fix flag

* add lock

* fix:code style

* fix CI

* Revert "Merge branch 'add_metrix' into add_metrix"

This reverts commit 4202962, reversing
changes made to 69069e2.

* Revert "Merge pull request OpenAtomFoundation#19 from AlexStocks/add_metrix"

This reverts commit 3651017, reversing
changes made to 12a3ccc.

* add_metricx

* fix lock

* fix panic

* fix

* fix review comment

* fix:comment

* fix cmdinfo

---------

Co-authored-by: cheniujh <41671101+cheniujh@users.noreply.github.com>
Co-authored-by: cjh <1271435567@qq.com>
Co-authored-by: chejinge <chejinge@360.cn>
Co-authored-by: alexstocks <alexstocks@foxmail.com>
Co-authored-by: Xin.Zh <dragoncharlie@foxmail.com>
cheniujh added a commit to cheniujh/pika that referenced this pull request Sep 24, 2024
Co-authored-by: cjh <1271435567@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.5.5 4.0.0 ☢️ Bug Something isn't working 🧹 Updates This will not be worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants