pika icon indicating copy to clipboard operation
pika copied to clipboard

fix: delete reduntant lock in storage

Open Mixficsol opened this issue 1 year ago • 1 comments

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

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

#2371

Mixficsol avatar Feb 01 '24 03:02 Mixficsol

https://wanghenshui.github.io/2020/07/14/reduce-lock.html

AlexStocks avatar Feb 08 '24 06:02 AlexStocks

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

wanghenshui avatar Mar 04 '24 03:03 wanghenshui