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

View File

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