aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/volume_loading.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-04-19 01:56:38 -0700
committerChris Lu <chris.lu@gmail.com>2019-04-19 01:56:38 -0700
commit0be2d51c96e4c2c05cad5ac3d6104ccb7e1adeb6 (patch)
tree6b5f3ed7ceb32941db2e7999a162a07da8fc543c /weed/storage/volume_loading.go
parentac2727853f94c8fc4e301a995997f02b70047853 (diff)
downloadseaweedfs-0be2d51c96e4c2c05cad5ac3d6104ccb7e1adeb6.tar.xz
seaweedfs-0be2d51c96e4c2c05cad5ac3d6104ccb7e1adeb6.zip
read volume lastAppendAtNs when loading a volume
Diffstat (limited to 'weed/storage/volume_loading.go')
-rw-r--r--weed/storage/volume_loading.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/storage/volume_loading.go b/weed/storage/volume_loading.go
index eb82ffe98..cfc59eb09 100644
--- a/weed/storage/volume_loading.go
+++ b/weed/storage/volume_loading.go
@@ -73,7 +73,7 @@ func (v *Volume) load(alsoLoadIndex bool, createDatIfMissing bool, needleMapKind
return fmt.Errorf("cannot write Volume Index %s.idx: %v", fileName, e)
}
}
- if e = CheckVolumeDataIntegrity(v, indexFile); e != nil {
+ if v.lastAppendAtNs, e = CheckVolumeDataIntegrity(v, indexFile); e != nil {
v.readOnly = true
glog.V(0).Infof("volumeDataIntegrityChecking failed %v", e)
}