simplify a bit (#3631)

This commit is contained in:
famosss 2022-09-09 12:01:21 +08:00 committed by GitHub
parent 64e75a286e
commit 41af5a6ee5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -143,6 +143,7 @@ func (v *Volume) readNeedleDataInto(n *needle.Needle, readOption *ReadOption, wr
return ErrorNotFound return ErrorNotFound
} }
actualOffset = nv.Offset.ToActualOffset() actualOffset = nv.Offset.ToActualOffset()
readOption.VolumeRevision = v.SuperBlock.CompactionRevision
} }
count, err := n.ReadNeedleData(v.DataBackend, actualOffset, buf, x) count, err := n.ReadNeedleData(v.DataBackend, actualOffset, buf, x)
v.dataFileAccessLock.RUnlock() v.dataFileAccessLock.RUnlock()