mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 15:47:57 +08:00
Rename End_of_file variable, implement platform indepenent memory_map.go
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
Reference in New Issue
Block a user