refactoring

This commit is contained in:
Chris Lu
2020-08-18 17:39:29 -07:00
parent 7e91ae592c
commit c026eb0592
4 changed files with 5 additions and 5 deletions

View File

@@ -124,7 +124,7 @@ func (s *Store) ReadEcShardNeedle(vid needle.VolumeId, n *needle.Needle) (int, e
if err != nil {
return 0, fmt.Errorf("locate in local ec volume: %v", err)
}
if size == types.TombstoneFileSize {
if size.IsDeleted() {
return 0, fmt.Errorf("entry %s is deleted", n.Id)
}