adjust logs

This commit is contained in:
Chris Lu
2020-08-18 23:42:09 -07:00
parent 9f1e0aeef5
commit ed4b43b419
4 changed files with 5 additions and 4 deletions

View File

@@ -263,6 +263,7 @@ func (v *Volume) readNeedle(n *needle.Needle, readOption *ReadOption) (int, erro
readSize := nv.Size
if readSize.IsDeleted() {
if readOption != nil && readOption.ReadDeleted && readSize != TombstoneFileSize {
glog.V(3).Infof("reading deleted %s", n.String())
readSize = -readSize
} else {
return -1, errors.New("already deleted")