|
@@ -71,7 +71,7 @@ type MemoryStorageManager struct {
|
|
|
Data map[uint64]interface{}
|
|
|
mutex *sync.Mutex
|
|
|
|
|
|
- LocCount uint64
|
|
|
+ LocCount uint64
|
|
|
AccessMap map[uint64]int
|
|
|
}
|
|
|
|
|
@@ -79,6 +79,11 @@ type MemoryStorageManager struct {
|
|
|
NewMemoryStorageManager creates a new MemoryStorageManager
|
|
|
*/
|
|
|
func NewMemoryStorageManager(name string) *MemoryStorageManager {
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
return &MemoryStorageManager{name, make(map[int]uint64),
|
|
|
make(map[uint64]interface{}), &sync.Mutex{}, 1, make(map[uint64]int)}
|
|
|
}
|
|
@@ -91,7 +96,7 @@ func (msm *MemoryStorageManager) Name() string {
|
|
|
}
|
|
|
|
|
|
|
|
|
-Root returns a root value.
|
|
|
+Root returns a root value. Default (empty) value is 0.
|
|
|
*/
|
|
|
func (msm *MemoryStorageManager) Root(root int) uint64 {
|
|
|
msm.mutex.Lock()
|