diff options
| author | j.laycock <joseph.laycock@4sightimaging.com> | 2019-09-04 14:24:17 +0100 |
|---|---|---|
| committer | j.laycock <joseph.laycock@4sightimaging.com> | 2019-09-04 14:24:17 +0100 |
| commit | cc756ddd79608ff46839a1542c3f42d4ab8148d7 (patch) | |
| tree | fff89ca9cf83858810dcb5be76db001991939577 /weed/storage/volume_super_block.go | |
| parent | 9aa0859697d903ecd2c53ebd73df164de14a835b (diff) | |
| download | seaweedfs-cc756ddd79608ff46839a1542c3f42d4ab8148d7.tar.xz seaweedfs-cc756ddd79608ff46839a1542c3f42d4ab8148d7.zip | |
Rename End_of_file variable, implement platform indepenent memory_map.go
Diffstat (limited to 'weed/storage/volume_super_block.go')
| -rw-r--r-- | weed/storage/volume_super_block.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/storage/volume_super_block.go b/weed/storage/volume_super_block.go index 936648f44..f93c43fbf 100644 --- a/weed/storage/volume_super_block.go +++ b/weed/storage/volume_super_block.go @@ -75,7 +75,7 @@ func (v *Volume) maybeWriteSuperBlock() error { mMap, exists := memory_map.FileMemoryMap[v.dataFile.Name()] if exists { - if mMap.End_Of_File == -1 { + if mMap.End_of_file == -1 { v.SuperBlock.version = needle.CurrentVersion mMap.WriteMemory(0, uint64(len(v.SuperBlock.Bytes())), v.SuperBlock.Bytes()) } |
