forked from TrueCloudLab/frostfs-node
[#176] shard: Get rid of using the global RW lock
In previous implementation each shard operation locked RW shard mutex. With this approach RW operations were executed one-by-one and blocked the execution of RO operations. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
9ab371aafb
commit
df558cbe6b
6 changed files with 0 additions and 20 deletions
|
@ -33,9 +33,6 @@ func (p *ExistsRes) Exists() bool {
|
|||
// Returns any error encountered that does not allow to
|
||||
// unambiguously determine the presence of an object.
|
||||
func (s *Shard) Exists(prm *ExistsPrm) (*ExistsRes, error) {
|
||||
s.mtx.RLock()
|
||||
defer s.mtx.RUnlock()
|
||||
|
||||
// FIXME: implement me
|
||||
return &ExistsRes{
|
||||
ex: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue