diff --git a/blobstore/shardnode/storage/shard.go b/blobstore/shardnode/storage/shard.go index eda16b090..fcc7da3f8 100644 --- a/blobstore/shardnode/storage/shard.go +++ b/blobstore/shardnode/storage/shard.go @@ -1049,7 +1049,7 @@ func (s *shardState) splitStopWriting() { } func (s *shardState) prepRWCheck(ctx context.Context) error { - if atomic.LoadUint32(&s.restartLeaderReadIndex) == needReadIndex { + if atomic.LoadUint32(&s.restartLeaderReadIndex) == needReadIndex && s.readIndexFunc != nil { if err := s.readIndexFunc(ctx); err != nil { return err }