adjust memory layout to avoid possible nil pointer
This commit is contained in:
@@ -37,10 +37,10 @@ type NeedleMapper interface {
|
||||
}
|
||||
|
||||
type baseNeedleMapper struct {
|
||||
mapMetric
|
||||
|
||||
indexFile *os.File
|
||||
indexFileAccessLock sync.Mutex
|
||||
|
||||
mapMetric
|
||||
}
|
||||
|
||||
func (nm *baseNeedleMapper) IndexFileSize() uint64 {
|
||||
|
||||
Reference in New Issue
Block a user