[#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:
Leonard Lyubich 2020-11-18 14:54:59 +03:00 committed by Alex Vanin
parent 9ab371aafb
commit df558cbe6b
6 changed files with 0 additions and 20 deletions

View file

@ -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,