aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/backend
diff options
context:
space:
mode:
authorRyan Russell <ryanrussell@users.noreply.github.com>2022-09-16 04:43:17 -0500
committerGitHub <noreply@github.com>2022-09-16 02:43:17 -0700
commit277976bd762a108d6b6f7f96500a769c5454549d (patch)
tree0a44f42bcfff5c12f79186ccbd8a8d7b236668d5 /weed/storage/backend
parentd949a238b83dc05fe79a1fb02a047a25355feb7b (diff)
downloadseaweedfs-277976bd762a108d6b6f7f96500a769c5454549d.tar.xz
seaweedfs-277976bd762a108d6b6f7f96500a769c5454549d.zip
refactor(storage): readability improvements (#3703)
Signed-off-by: Ryan Russell <git@ryanrussell.org> Signed-off-by: Ryan Russell <git@ryanrussell.org>
Diffstat (limited to 'weed/storage/backend')
-rw-r--r--weed/storage/backend/memory_map/memory_map_windows.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/storage/backend/memory_map/memory_map_windows.go b/weed/storage/backend/memory_map/memory_map_windows.go
index b65e1b20a..ce0c04318 100644
--- a/weed/storage/backend/memory_map/memory_map_windows.go
+++ b/weed/storage/backend/memory_map/memory_map_windows.go
@@ -153,7 +153,7 @@ func allocate(hMapFile windows.Handle, offset uint64, length uint64, write bool)
mBuffer := MemoryBuffer{}
- //align memory allocations to the minium virtal memory allocation size
+ //align memory allocations to the minium virtual memory allocation size
dwSysGran := systemInfo.dwAllocationGranularity
start := (offset / uint64(dwSysGran)) * uint64(dwSysGran)