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: delete reduntant lock in storage #2372

Merged
merged 4 commits into from
Mar 7, 2024

Conversation

Mixficsol
Copy link
Collaborator

@Mixficsol Mixficsol commented Feb 1, 2024

这个 PR 中主要做了两件事:

  1. 由于 Pika 的 CMD 层上了 Key 锁,所以把 Redis 层的 Key 锁进行了删除
  2. 如图所示,在 DB 层有两个重复的 shared_mutex 保护 DB 的变量,对于它们两个进行了整合操作
截屏2024-02-01 11 42 04

fix: #2322

@AlexStocks AlexStocks changed the title fix: fix lock fix: delete reduntant lock in storage Feb 2, 2024
@AlexStocks
Copy link
Collaborator

@wanghenshui
Copy link
Collaborator

LGTM,加点测试用例,构造一下竞争场景

@AlexStocks AlexStocks merged commit b743303 into OpenAtomFoundation:unstable Mar 7, 2024
13 checks passed
@Mixficsol Mixficsol deleted the fix_lock branch March 14, 2024 12:16
@Mixficsol Mixficsol restored the fix_lock branch March 15, 2024 07:15
@Mixficsol Mixficsol deleted the fix_lock branch March 15, 2024 07:15
Mixficsol added a commit that referenced this pull request Mar 15, 2024
This reverts commit b743303.
bigdaronlee163 pushed a commit to bigdaronlee163/pika that referenced this pull request Jun 8, 2024
cheniujh pushed a commit to cheniujh/pika that referenced this pull request Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.5.3 ☢️ Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pika的代码中对key是否上了重复的锁
4 participants