mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-12 23:09:33 +01:00
adjust memory layout to avoid possible nil pointer
This commit is contained in:
1 parent
25941e0500
commit
177f3add81
2 files changed
+3
-4
No files matched your search
@@ -37,10 +37,10 @@ type NeedleMapper interface {
|
||||
}
|
||||
|
||||
type baseNeedleMapper struct {
|
||||
mapMetric
|
||||
|
||||
indexFile *os.File
|
||||
indexFileAccessLock sync.Mutex
|
||||
|
||||
mapMetric
|
||||
}
|
||||
|
||||
func (nm *baseNeedleMapper) IndexFileSize() uint64 {
|
||||
|
||||
@@ -10,9 +10,8 @@ import (
|
||||
)
|
||||
|
||||
type NeedleMap struct {
|
||||
m needle_map.NeedleValueMap
|
||||
|
||||
baseNeedleMapper
|
||||
m needle_map.NeedleValueMap
|
||||
}
|
||||
|
||||
func NewCompactNeedleMap(file *os.File) *NeedleMap {
|
||||
|
||||
Reference in new issue
Block a user