diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-04-19 01:56:38 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-04-19 01:56:38 -0700 |
| commit | 0be2d51c96e4c2c05cad5ac3d6104ccb7e1adeb6 (patch) | |
| tree | 6b5f3ed7ceb32941db2e7999a162a07da8fc543c /weed/storage/volume_loading.go | |
| parent | ac2727853f94c8fc4e301a995997f02b70047853 (diff) | |
| download | seaweedfs-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.go | 2 |
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) } |
