aboutsummaryrefslogtreecommitdiff
path: root/weed
diff options
context:
space:
mode:
authorfamosss <zzq09494@ly.com>2022-09-09 12:01:21 +0800
committerGitHub <noreply@github.com>2022-09-08 21:01:21 -0700
commit41af5a6ee52c67a80fd28a65a159048b2764e5b9 (patch)
tree8e0bb3f264827f10f259e6c6682678225a2ae09c /weed
parent64e75a286ee619893c50ed900adddbd914a5ac43 (diff)
downloadseaweedfs-41af5a6ee52c67a80fd28a65a159048b2764e5b9.tar.xz
seaweedfs-41af5a6ee52c67a80fd28a65a159048b2764e5b9.zip
simplify a bit (#3631)
Diffstat (limited to 'weed')
-rw-r--r--weed/storage/volume_read.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/storage/volume_read.go b/weed/storage/volume_read.go
index 20bda83bb..e9c7cf4cb 100644
--- a/weed/storage/volume_read.go
+++ b/weed/storage/volume_read.go
@@ -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()